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