public final class AssessmentSentiment extends Object
AssessmentSentiment
model.Constructor and Description |
---|
AssessmentSentiment() |
Modifier and Type | Method and Description |
---|---|
SentimentConfidenceScores |
getConfidenceScores()
Get the confidence score of the sentiment label.
|
int |
getLength()
Get the length of opinion text.
|
int |
getOffset()
Get the offset of opinion text.
|
TextSentiment |
getSentiment()
Get the opinion text sentiment label: POSITIVE, NEGATIVE, MIXED.
|
String |
getText()
Get the opinion text property.
|
boolean |
isNegated()
Get 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()
SentimentConfidenceScores
.Copyright © 2021 Microsoft Corporation. All rights reserved.