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 class
KeywordsOptions.Builder
Builder. -
Method Summary
Modifier and Type Method Description Boolean
emotion()
Gets the emotion.Long
limit()
Gets the limit.KeywordsOptions.Builder
newBuilder()
New builder.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 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
-