public final class AssessmentSentiment extends Object
AssessmentSentiment model.| Constructor and Description |
|---|
AssessmentSentiment() |
| Modifier and Type | Method and Description |
|---|---|
SentimentConfidenceScores |
getConfidenceScores()
Gets the confidence score of the sentiment label.
|
int |
getLength()
Gets the length of opinion text.
|
int |
getOffset()
Gets the offset of opinion text.
|
TextSentiment |
getSentiment()
Gets the opinion text sentiment label: POSITIVE, NEGATIVE, MIXED.
|
String |
getText()
Gets the opinion text property.
|
boolean |
isNegated()
Gets the boolean indicator to show if the text is negative.
|
public String getText()
public TextSentiment getSentiment()
TextSentiment has
neutral sentiment type additionally, but target sentiment can only be positive, negative, or mixed.public int getOffset()
public int getLength()
public boolean isNegated()
public SentimentConfidenceScores getConfidenceScores()
AssessmentSentiment only has positive or negative confidence
score value because there is no neutral sentiment label in the AssessmentSentiment.SentimentConfidenceScores.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.