public class KeywordsResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.lang.Long |
count |
protected EmotionScores |
emotion |
protected java.lang.Double |
relevance |
protected FeatureSentimentResults |
sentiment |
protected java.lang.String |
text |
Constructor and Description |
---|
KeywordsResult() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getCount()
Gets the count.
|
EmotionScores |
getEmotion()
Gets the emotion.
|
java.lang.Double |
getRelevance()
Gets the relevance.
|
FeatureSentimentResults |
getSentiment()
Gets the sentiment.
|
java.lang.String |
getText()
Gets the text.
|
protected java.lang.Long count
protected java.lang.Double relevance
protected java.lang.String text
protected EmotionScores emotion
protected FeatureSentimentResults sentiment
public java.lang.Long getCount()
Number of times the keyword appears in the analyzed text.
public java.lang.Double getRelevance()
Relevance score from 0 to 1. Higher values indicate greater relevance.
public java.lang.String getText()
The keyword text.
public EmotionScores getEmotion()
Emotion analysis results for the keyword, enabled with the `emotion` option.
public FeatureSentimentResults getSentiment()
Sentiment analysis results for the keyword, enabled with the `sentiment` option.