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