AnalyzeSentimentOptions Class
- java.
lang. Object - com.
azure. ai. textanalytics. models. TextAnalyticsRequestOptions - com.
azure. ai. textanalytics. models. AnalyzeSentimentOptions
- com.
- com.
public final class AnalyzeSentimentOptions
extends TextAnalyticsRequestOptions
The AnalyzeSentimentOptions model.
Constructor Summary
| Constructor | Description |
|---|---|
| AnalyzeSentimentOptions() |
Constructs a |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| boolean |
isIncludeOpinionMining()
Gets the value of |
|
Analyze |
setIncludeOpinionMining(boolean includeOpinionMining)
Sets the value of |
|
Analyze |
setIncludeStatistics(boolean includeStatistics)
Sets the value of |
|
Analyze |
setModelVersion(String modelVersion)
Sets the model version. |
|
Analyze |
setServiceLogsDisabled(boolean disableServiceLogs)
Sets the value of service logs disable status. |
Methods inherited from TextAnalyticsRequestOptions
Methods inherited from java.lang.Object
Constructor Details
AnalyzeSentimentOptions
public AnalyzeSentimentOptions()
Constructs a AnalyzeSentimentOptions model.
Method Details
isIncludeOpinionMining
public boolean isIncludeOpinionMining()
Gets the value of includeOpinionMining. The boolean indicator to include opinion mining data in the returned result. If this flag is specified, you'll get a opinions property on SentenceSentiment. It is provided by service v3.1 and later.
Returns:
includeOpinionMining.setIncludeOpinionMining
public AnalyzeSentimentOptions setIncludeOpinionMining(boolean includeOpinionMining)
Sets the value of includeOpinionMining. The boolean indicator to include opinion mining data in the returned result. If this flag is specified, you'll get a opinions property on SentenceSentiment. It is provided by service v3.1 and later.
Parameters:
Returns:
AnalyzeSentimentOptions object itself.setIncludeStatistics
public AnalyzeSentimentOptions setIncludeStatistics(boolean includeStatistics)
Sets the value of includeStatistics. The default value is false by default. If set to true, indicates that the service should return document and document batch statistics with the results of the operation.
Overrides:
AnalyzeSentimentOptions.setIncludeStatistics(boolean includeStatistics)Parameters:
Returns:
AnalyzeSentimentOptions object itself.setModelVersion
public AnalyzeSentimentOptions setModelVersion(String modelVersion)
Sets the model version. This value indicates which model will be used for scoring, e.g. "latest", "2019-10-01". If a model-version is not specified, the API will default to the latest, non-preview version.
Overrides:
AnalyzeSentimentOptions.setModelVersion(String modelVersion)Parameters:
Returns:
AnalyzeSentimentOptions object itself.setServiceLogsDisabled
public AnalyzeSentimentOptions setServiceLogsDisabled(boolean disableServiceLogs)
Sets the value of service logs disable status.
Overrides:
AnalyzeSentimentOptions.setServiceLogsDisabled(boolean disableServiceLogs)Parameters:
Returns:
AnalyzeSentimentOptions object itself.