Class KeywordsOptions
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.KeywordsOptions
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class KeywordsOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Returns important keywords in the content.
Supported languages: English, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Swedish.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeywordsOptions.BuilderBuilder. -
Method Summary
Modifier and Type Method Description Booleanemotion()Gets the emotion.Longlimit()Gets the limit.KeywordsOptions.BuildernewBuilder()New builder.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 KeywordsOptions builder
-
limit
Gets the limit.Maximum number of keywords to return.
- Returns:
- the limit
-
sentiment
Gets the sentiment.Set this to `true` to return sentiment information for detected keywords.
- Returns:
- the sentiment
-
emotion
Gets the emotion.Set this to `true` to analyze emotion for detected keywords.
- Returns:
- the emotion
-