public class EntitiesOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Supported languages: English, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Swedish. Arabic, Chinese, and Dutch are supported only through custom models.
Modifier and Type | Class and Description |
---|---|
static class |
EntitiesOptions.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.Boolean |
emotion |
protected java.lang.Long |
limit |
protected java.lang.Boolean |
mentions |
protected java.lang.String |
model |
protected java.lang.Boolean |
sentiment |
Modifier | Constructor and Description |
---|---|
protected |
EntitiesOptions(EntitiesOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
emotion()
Gets the emotion.
|
java.lang.Long |
limit()
Gets the limit.
|
java.lang.Boolean |
mentions()
Gets the mentions.
|
java.lang.String |
model()
Gets the model.
|
EntitiesOptions.Builder |
newBuilder()
New builder.
|
java.lang.Boolean |
sentiment()
Gets the sentiment.
|
protected java.lang.Long limit
protected java.lang.Boolean mentions
protected java.lang.String model
protected java.lang.Boolean sentiment
protected java.lang.Boolean emotion
protected EntitiesOptions(EntitiesOptions.Builder builder)
public EntitiesOptions.Builder newBuilder()
public java.lang.Long limit()
Maximum number of entities to return.
public java.lang.Boolean mentions()
Set this to `true` to return locations of entity mentions.
public java.lang.String model()
Enter a [custom model](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-customizing) ID to override the standard entity detection model.
public java.lang.Boolean sentiment()
Set this to `true` to return sentiment information for detected entities.
public java.lang.Boolean emotion()
Set this to `true` to analyze emotion for detected keywords.