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

public class SyntaxOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Returns tokens and sentences from the input text.
  • Method Details

    • newBuilder

      public SyntaxOptions.Builder newBuilder()
      New builder.
      Returns:
      a SyntaxOptions builder
    • tokens

      public SyntaxOptionsTokens tokens()
      Gets the tokens.

      Tokenization options.

      Returns:
      the tokens
    • sentences

      public Boolean sentences()
      Gets the sentences.

      Set this to `true` to return sentence information.

      Returns:
      the sentences