Java Reference
In-Depth Information
System.out.println(sentimentText[score]);
}
When the code is executed using the review string, we get the following output:
Positive
The text, sam , consists of three sentences. The output for each is as follows, showing the
sentiment for each sentence:
Neutral
Negative
Neutral
The text, mary , consists of two sentences. The output for each is as follows:
Positive
Neutral
Search WWH ::




Custom Search