Class SyntaxOptions
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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SyntaxOptions.Builder
Builder. -
Method Summary
Modifier and Type Method Description SyntaxOptions.Builder
newBuilder()
New builder.Boolean
sentences()
Gets the sentences.SyntaxOptionsTokens
tokens()
Gets the tokens.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a SyntaxOptions builder
-
tokens
Gets the tokens.Tokenization options.
- Returns:
- the tokens
-
sentences
Gets the sentences.Set this to `true` to return sentence information.
- Returns:
- the sentences
-