java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.KeywordsOptions
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class KeywordsOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Returns important keywords in the content.

Supported languages: English, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Swedish.

  • Method Details

    • newBuilder

      public KeywordsOptions.Builder newBuilder()
      New builder.
      Returns:
      a KeywordsOptions builder
    • limit

      public Long limit()
      Gets the limit.

      Maximum number of keywords to return.

      Returns:
      the limit
    • sentiment

      public Boolean sentiment()
      Gets the sentiment.

      Set this to `true` to return sentiment information for detected keywords.

      Returns:
      the sentiment
    • emotion

      public Boolean emotion()
      Gets the emotion.

      Set this to `true` to analyze emotion for detected keywords.

      Returns:
      the emotion