public class SentimentOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Supported languages: Arabic, English, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish.
Modifier and Type | Class and Description |
---|---|
static class |
SentimentOptions.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.Boolean |
document |
protected java.util.List<java.lang.String> |
targets |
Modifier | Constructor and Description |
---|---|
protected |
SentimentOptions(SentimentOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
document()
Gets the document.
|
SentimentOptions.Builder |
newBuilder()
New builder.
|
java.util.List<java.lang.String> |
targets()
Gets the targets.
|
protected java.lang.Boolean document
protected java.util.List<java.lang.String> targets
protected SentimentOptions(SentimentOptions.Builder builder)
public SentimentOptions.Builder newBuilder()
public java.lang.Boolean document()
Set this to `false` to hide document-level sentiment results.
public java.util.List<java.lang.String> targets()
Sentiment results will be returned for each target string that is found in the document.