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 | Method and Description |
---|---|
Boolean |
document()
Gets the document.
|
String |
model()
Gets the model.
|
SentimentOptions.Builder |
newBuilder()
New builder.
|
List<String> |
targets()
Gets the targets.
|
public SentimentOptions.Builder newBuilder()
public Boolean document()
Set this to `false` to hide document-level sentiment results.
public List<String> targets()
Sentiment results will be returned for each target string that is found in the document.
public String model()
(Beta) Enter a [custom model](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-customizing) ID to override the standard sentiment model for all sentiment analysis operations in the request, including targeted sentiment for entities and keywords.
Copyright © 2021 IBM Cloud. All rights reserved.