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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SemanticRolesOptions.Builder
Builder. -
Method Summary
Modifier and Type Method Description Boolean
entities()
Gets the entities.Boolean
keywords()
Gets the keywords.Long
limit()
Gets the limit.SemanticRolesOptions.Builder
newBuilder()
New builder.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a SemanticRolesOptions builder
-
limit
Gets the limit.Maximum number of semantic_roles results to return.
- Returns:
- the limit
-
keywords
Gets the keywords.Set this to `true` to return keyword information for subjects and objects.
- Returns:
- the keywords
-
entities
Gets the entities.Set this to `true` to return entity information for subjects and objects.
- Returns:
- the entities
-