public final class AnalyzeSentimentOptions extends TextAnalyticsRequestOptions
AnalyzeSentimentOptions
model.Constructor and Description |
---|
AnalyzeSentimentOptions() |
Modifier and Type | Method and Description |
---|---|
StringIndexType |
getStringIndexType()
Get the value of
stringIndexType . |
boolean |
isIncludeOpinionMining()
Get the value of
includeOpinionMining . |
AnalyzeSentimentOptions |
setIncludeOpinionMining(boolean includeOpinionMining)
Set the value of
includeOpinionMining . |
AnalyzeSentimentOptions |
setIncludeStatistics(boolean includeStatistics)
Set the value of
includeStatistics . |
AnalyzeSentimentOptions |
setModelVersion(String modelVersion)
Set the model version.
|
AnalyzeSentimentOptions |
setServiceLogsDisabled(boolean disableServiceLogs)
Set the value of
disableServiceLogs . |
AnalyzeSentimentOptions |
setStringIndexType(StringIndexType stringIndexType)
Set the value of
stringIndexType . |
getModelVersion, isIncludeStatistics, isServiceLogsDisabled
public AnalyzeSentimentOptions setModelVersion(String modelVersion)
setModelVersion
in class TextAnalyticsRequestOptions
modelVersion
- The model version.AnalyzeSentimentOptions
object itself.public AnalyzeSentimentOptions setIncludeStatistics(boolean includeStatistics)
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.setIncludeStatistics
in class TextAnalyticsRequestOptions
includeStatistics
- If a boolean value was specified in the request this field will contain
information about the document payload.AnalyzeSentimentOptions
object itself.public AnalyzeSentimentOptions setServiceLogsDisabled(boolean disableServiceLogs)
disableServiceLogs
.setServiceLogsDisabled
in class TextAnalyticsRequestOptions
disableServiceLogs
- The default value of this property is 'false', except for methods like
'beginAnalyzeHealthcareEntities' and 'recognizePiiEntities'. 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.AnalyzeSentimentOptions
object itself.public boolean isIncludeOpinionMining()
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-preview.1 and later.includeOpinionMining
.public AnalyzeSentimentOptions setIncludeOpinionMining(boolean includeOpinionMining)
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-preview.1 and later.includeOpinionMining
- The boolean indicator to include opinion mining data in the returned result.public StringIndexType getStringIndexType()
stringIndexType
.stringIndexType
.public AnalyzeSentimentOptions setStringIndexType(StringIndexType stringIndexType)
stringIndexType
.
The StringIndexType.UTF16CODE_UNIT
will be used as default type if there is no value assign to it.stringIndexType
- It used to set the value of string indexing type.AnalyzeSentimentOptions
object itself.Copyright © 2021 Microsoft Corporation. All rights reserved.