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 Details

    • KeywordsResult

      public KeywordsResult()
  • Method Details

    • getCount

      public Long getCount()
      Gets the count.

      Number of times the keyword appears in the analyzed text.

      Returns:
      the count
    • getRelevance

      public Double getRelevance()
      Gets the relevance.

      Relevance score from 0 to 1. Higher values indicate greater relevance.

      Returns:
      the relevance
    • getText

      public String getText()
      Gets the text.

      The keyword text.

      Returns:
      the text
    • getEmotion

      public EmotionScores getEmotion()
      Gets the emotion.

      Emotion analysis results for the keyword, enabled with the `emotion` option.

      Returns:
      the emotion
    • getSentiment

      public FeatureSentimentResults getSentiment()
      Gets the sentiment.

      Sentiment analysis results for the keyword, enabled with the `sentiment` option.

      Returns:
      the sentiment