Class SemanticRolesOptions

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

public class SemanticRolesOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Parses sentences into subject, action, and object form.

Supported languages: English, German, Japanese, Korean, Spanish.

  • Method Details

    • newBuilder

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

      public Long limit()
      Gets the limit.

      Maximum number of semantic_roles results to return.

      Returns:
      the limit
    • keywords

      public Boolean keywords()
      Gets the keywords.

      Set this to `true` to return keyword information for subjects and objects.

      Returns:
      the keywords
    • entities

      public Boolean entities()
      Gets the entities.

      Set this to `true` to return entity information for subjects and objects.

      Returns:
      the entities