TextAnalyticsRequestOptions Class
- java.
lang. Object - com.
azure. ai. textanalytics. models. TextAnalyticsRequestOptions
- com.
public class TextAnalyticsRequestOptions
The TextAnalyticsRequestOptions
model.
Constructor Summary
Constructor | Description |
---|---|
TextAnalyticsRequestOptions() |
Constructs a |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getModelVersion()
Gets the version of the text analytics model used by this operation. |
boolean |
isIncludeStatistics()
Get the value of |
boolean |
isServiceLogsDisabled()
Gets the value of service logs disable status. |
Text |
setIncludeStatistics(boolean includeStatistics)
Set the value of |
Text |
setModelVersion(String modelVersion)
Set the model version. |
Text |
setServiceLogsDisabled(boolean disableServiceLogs)
Sets the value of service logs disable status. |
Methods inherited from java.lang.Object
Constructor Details
TextAnalyticsRequestOptions
public TextAnalyticsRequestOptions()
Constructs a TextAnalyticsRequestOptions
model.
Method Details
getModelVersion
public String getModelVersion()
Gets the version of the text analytics model used by this operation.
Returns:
isIncludeStatistics
public boolean isIncludeStatistics()
Get the value of includeStatistics
.
Returns:
includeStatistics
.isServiceLogsDisabled
public boolean isServiceLogsDisabled()
Gets the value of service logs disable status. The default value of this property is 'false', except at AnalyzeHealthcareEntitiesOptions and RecognizePiiEntitiesOptions. 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:
setIncludeStatistics
public TextAnalyticsRequestOptions setIncludeStatistics(boolean includeStatistics)
Set 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.
Parameters:
Returns:
TextAnalyticsRequestOptions
object itself.setModelVersion
public TextAnalyticsRequestOptions setModelVersion(String modelVersion)
Set 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:
TextAnalyticsRequestOptions
object itself.setServiceLogsDisabled
public TextAnalyticsRequestOptions setServiceLogsDisabled(boolean disableServiceLogs)
Sets the value of service logs disable status.
Parameters:
Returns:
TextAnalyticsRequestOptions
object itself.Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for