Class ExtractiveSummaryOptions
java.lang.Object
com.azure.ai.textanalytics.models.TextAnalyticsRequestOptions
com.azure.ai.textanalytics.models.ExtractiveSummaryOptions
Configurations that allow callers to specify details about how to execute an extractive summarization in a
set of documents.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets display name of the operation.Gets the maximum extractive summarization sentences number to be returned in the response.Gets the order in which the summary sentences will be presented by.setDisplayName(String displayName) Sets display name of the operation.setIncludeStatistics(boolean includeStatistics) Sets the value ofincludeStatistics.setMaxSentenceCount(Integer maxSentenceCount) Sets the maximum extractive summarization sentences number to be returned in the response.setModelVersion(String modelVersion) Sets the model version.Sets the order in which the summary sentences will be presented by.setServiceLogsDisabled(boolean disableServiceLogs) Sets the value of service logs disable status.Methods inherited from class com.azure.ai.textanalytics.models.TextAnalyticsRequestOptions
getModelVersion, isIncludeStatistics, isServiceLogsDisabled
-
Constructor Details
-
ExtractiveSummaryOptions
public ExtractiveSummaryOptions()Constructs aExtractiveSummaryOptionsmodel.
-
-
Method Details
-
setModelVersion
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:
setModelVersionin classTextAnalyticsRequestOptions- Parameters:
modelVersion- The model version.- Returns:
- The
ExtractiveSummaryOptionsobject itself.
-
setIncludeStatistics
Sets the value ofincludeStatistics. 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:
setIncludeStatisticsin classTextAnalyticsRequestOptions- Parameters:
includeStatistics- If a boolean value was specified in the request this field will contain information about the document payload.- Returns:
- The
ExtractiveSummaryOptionsobject itself.
-
setServiceLogsDisabled
Sets the value of service logs disable status.- Overrides:
setServiceLogsDisabledin classTextAnalyticsRequestOptions- Parameters:
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.- Returns:
- The
ExtractiveSummaryOptionsobject itself.
-
getDisplayName
Gets display name of the operation.- Returns:
- Display name of the operation.
-
setDisplayName
Sets display name of the operation.- Parameters:
displayName- Display name of the operation.- Returns:
- The
ExtractiveSummaryOptionsobject itself.
-
getMaxSentenceCount
Gets the maximum extractive summarization sentences number to be returned in the response. If 'null' or not specified, a default value of 3 will be used as the maximum sentences number in the service side.- Returns:
- The maximum extractive summarization sentences number to be returned in the response.
-
setMaxSentenceCount
Sets the maximum extractive summarization sentences number to be returned in the response. If 'null' or not specified, a default value of 3 will be used as the maximum sentences number in the service side.- Parameters:
maxSentenceCount- The maximum extractive summarization sentences number to be returned in the response.- Returns:
- The
ExtractiveSummaryOptionsobject itself.
-
getOrderBy
Gets the order in which the summary sentences will be presented by.- Returns:
- The order in which the summary sentences will be presented by.
-
setOrderBy
Sets the order in which the summary sentences will be presented by. Defaults toExtractiveSummarySentencesOrder.OFFSETif not specified.- Parameters:
orderBy- The type of summary sentences order. Defaults toExtractiveSummarySentencesOrder.OFFSETif not specified.- Returns:
- The
ExtractiveSummaryOptionsobject itself.
-