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 classNluEnrichmentEntities.BuilderBuilder. -
Method Summary
Modifier and Type Method Description Booleanemotion()Gets the emotion.Longlimit()Gets the limit.Booleanmentions()Gets the mentions.BooleanmentionTypes()Gets the mentionTypes.Stringmodel()Gets the model.NluEnrichmentEntities.BuildernewBuilder()New builder.BooleansentenceLocations()Gets the sentenceLocations.Booleansentiment()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
-