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 NluEnrichmentFeatures
build()
Builds a NluEnrichmentFeatures.NluEnrichmentFeatures.Builder
categories(Map<String,Object> categories)
Set the categories.NluEnrichmentFeatures.Builder
concepts(NluEnrichmentConcepts concepts)
Set the concepts.NluEnrichmentFeatures.Builder
emotion(NluEnrichmentEmotion emotion)
Set the emotion.NluEnrichmentFeatures.Builder
entities(NluEnrichmentEntities entities)
Set the entities.NluEnrichmentFeatures.Builder
keywords(NluEnrichmentKeywords keywords)
Set the keywords.NluEnrichmentFeatures.Builder
relations(NluEnrichmentRelations relations)
Set the relations.NluEnrichmentFeatures.Builder
semanticRoles(NluEnrichmentSemanticRoles semanticRoles)
Set the semanticRoles.NluEnrichmentFeatures.Builder
sentiment(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
-