Class NluEnrichmentEntities
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v1.model.NluEnrichmentEntities
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class NluEnrichmentEntities
extends com.ibm.cloud.sdk.core.service.model.GenericModel
An object speficying the Entities enrichment and related parameters.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NluEnrichmentEntities.Builder
Builder. -
Method Summary
Modifier and Type Method Description Boolean
emotion()
Gets the emotion.Long
limit()
Gets the limit.Boolean
mentions()
Gets the mentions.Boolean
mentionTypes()
Gets the mentionTypes.String
model()
Gets the model.NluEnrichmentEntities.Builder
newBuilder()
New builder.Boolean
sentenceLocations()
Gets the sentenceLocations.Boolean
sentiment()
Gets the sentiment.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a NluEnrichmentEntities builder
-
sentiment
Gets the sentiment.When `true`, sentiment analysis of entities will be performed on the specified field.
- Returns:
- the sentiment
-
emotion
Gets the emotion.When `true`, emotion detection of entities will be performed on the specified field.
- Returns:
- the emotion
-
limit
Gets the limit.The maximum number of entities to extract for each instance of the specified field.
- Returns:
- the limit
-
mentions
Gets the mentions.When `true`, the number of mentions of each identified entity is recorded. The default is `false`.
- Returns:
- the mentions
-
mentionTypes
Gets the mentionTypes.When `true`, the types of mentions for each idetifieid entity is recorded. The default is `false`.
- Returns:
- the mentionTypes
-
sentenceLocations
Gets the sentenceLocations.When `true`, a list of sentence locations for each instance of each identified entity is recorded. The default is `false`.
- Returns:
- the sentenceLocations
-
model
Gets the model.The enrichement model to use with entity extraction. May be a custom model provided by Watson Knowledge Studio, or the default public model `alchemy`.
- Returns:
- the model
-