Class KeywordsResult
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.KeywordsResult
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class KeywordsResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The important keywords in the content, organized by relevance.
-
Constructor Summary
Constructors Constructor Description KeywordsResult() -
Method Summary
Modifier and Type Method Description LonggetCount()Gets the count.EmotionScoresgetEmotion()Gets the emotion.DoublegetRelevance()Gets the relevance.FeatureSentimentResultsgetSentiment()Gets the sentiment.StringgetText()Gets the text.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
KeywordsResult
public KeywordsResult()
-
-
Method Details
-
getCount
Gets the count.Number of times the keyword appears in the analyzed text.
- Returns:
- the count
-
getRelevance
Gets the relevance.Relevance score from 0 to 1. Higher values indicate greater relevance.
- Returns:
- the relevance
-
getText
Gets the text.The keyword text.
- Returns:
- the text
-
getEmotion
Gets the emotion.Emotion analysis results for the keyword, enabled with the `emotion` option.
- Returns:
- the emotion
-
getSentiment
Gets the sentiment.Sentiment analysis results for the keyword, enabled with the `sentiment` option.
- Returns:
- the sentiment
-