Class NluEnrichmentFeatures.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.NluEnrichmentFeatures.Builder
- Enclosing class:
- NluEnrichmentFeatures
public static class NluEnrichmentFeatures.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder. -
Method Summary
Modifier and Type Method Description NluEnrichmentFeaturesbuild()Builds a NluEnrichmentFeatures.NluEnrichmentFeatures.Buildercategories(Map<String,Object> categories)Set the categories.NluEnrichmentFeatures.Builderconcepts(NluEnrichmentConcepts concepts)Set the concepts.NluEnrichmentFeatures.Builderemotion(NluEnrichmentEmotion emotion)Set the emotion.NluEnrichmentFeatures.Builderentities(NluEnrichmentEntities entities)Set the entities.NluEnrichmentFeatures.Builderkeywords(NluEnrichmentKeywords keywords)Set the keywords.NluEnrichmentFeatures.Builderrelations(NluEnrichmentRelations relations)Set the relations.NluEnrichmentFeatures.BuildersemanticRoles(NluEnrichmentSemanticRoles semanticRoles)Set the semanticRoles.NluEnrichmentFeatures.Buildersentiment(NluEnrichmentSentiment sentiment)Set the sentiment.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a NluEnrichmentFeatures.- Returns:
- the new NluEnrichmentFeatures instance
-
keywords
Set the keywords.- Parameters:
keywords- the keywords- Returns:
- the NluEnrichmentFeatures builder
-
entities
Set the entities.- Parameters:
entities- the entities- Returns:
- the NluEnrichmentFeatures builder
-
sentiment
Set the sentiment.- Parameters:
sentiment- the sentiment- Returns:
- the NluEnrichmentFeatures builder
-
emotion
Set the emotion.- Parameters:
emotion- the emotion- Returns:
- the NluEnrichmentFeatures builder
-
categories
Set the categories.- Parameters:
categories- the categories- Returns:
- the NluEnrichmentFeatures builder
-
semanticRoles
Set the semanticRoles.- Parameters:
semanticRoles- the semanticRoles- Returns:
- the NluEnrichmentFeatures builder
-
relations
Set the relations.- Parameters:
relations- the relations- Returns:
- the NluEnrichmentFeatures builder
-
concepts
Set the concepts.- Parameters:
concepts- the concepts- Returns:
- the NluEnrichmentFeatures builder
-