Class RelationsOptions
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.RelationsOptions
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class RelationsOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Recognizes when two entities are related and identifies the type of relation. For example, an
`awardedTo` relation might connect the entities "Nobel Prize" and "Albert Einstein". For more
information, see [Relation
types](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-relations).
Supported languages: Arabic, English, German, Japanese, Korean, Spanish. Chinese, Dutch, French, Italian, and Portuguese custom models are also supported.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RelationsOptions.Builder
Builder. -
Method Summary
Modifier and Type Method Description String
model()
Gets the model.RelationsOptions.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 RelationsOptions builder
-
model
Gets the model.Enter a [custom model](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-customizing) ID to override the default model.
- Returns:
- the model
-