AnalyzeSentimentAction Class
- java.
lang. Object - com.
azure. ai. textanalytics. models. AnalyzeSentimentAction
- com.
public final class AnalyzeSentimentAction
Configurations that allow callers to specify details about how to execute an sentiment analysis action in a set of documents.
Constructor Summary
| Constructor | Description |
|---|---|
| AnalyzeSentimentAction() |
Constructs a |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
getActionName()
Get the name of action. |
| String |
getModelVersion()
Gets the version of the text analytics model used by this operation. |
| boolean |
isIncludeOpinionMining()
Gets the value of |
| boolean |
isServiceLogsDisabled()
Gets the value of service logs disable status. |
|
Analyze |
setActionName(String actionName)
Set the custom name for the action. |
|
Analyze |
setIncludeOpinionMining(boolean includeOpinionMining)
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 java.lang.Object
Constructor Details
AnalyzeSentimentAction
public AnalyzeSentimentAction()
Constructs a AnalyzeSentimentAction model.
Method Details
getActionName
public String getActionName()
Get the name of action.
Returns:
getModelVersion
public String getModelVersion()
Gets the version of the text analytics model used by this operation.
Returns:
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.isServiceLogsDisabled
public boolean isServiceLogsDisabled()
Gets the value of service logs disable status. The default value of this property is 'false'. This means, Text Analytics service logs your input text for 48 hours, solely to allow for troubleshooting issues. Setting this property to true, disables input logging and may limit our ability to investigate issues that occur.
Returns:
setActionName
public AnalyzeSentimentAction setActionName(String actionName)
Set the custom name for the action.
Parameters:
Returns:
AnalyzeSentimentAction object itself.setIncludeOpinionMining
public AnalyzeSentimentAction 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:
AnalyzeSentimentAction object itself.setModelVersion
public AnalyzeSentimentAction 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.
Parameters:
Returns:
AnalyzeSentimentAction object itself.setServiceLogsDisabled
public AnalyzeSentimentAction setServiceLogsDisabled(boolean disableServiceLogs)
Sets the value of service logs disable status.
Parameters:
Returns:
AnalyzeSentimentAction object itself.