Class ExtractSummaryAction
java.lang.Object
com.azure.ai.textanalytics.models.ExtractSummaryAction
Configurations that allow callers to specify details about how to execute an extractive summarization action in a
set of documents.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the name of action.Gets the maximum extractive summarization sentences number to be returned in the response.Gets the version of the text analytics model used by this operation.Gets the order in which the summary sentences will be presented by.boolean
Gets the value ofdisableServiceLogs
.setActionName
(String actionName) Set the custom name for the action.setMaxSentenceCount
(Integer maxSentenceCount) Sets the maximum extractive summarization sentences number to be returned in the response.setModelVersion
(String modelVersion) Set the model version.setOrderBy
(SummarySentencesOrder orderBy) Sets the order in which the summary sentences will be presented by.setServiceLogsDisabled
(boolean disableServiceLogs) Sets the value ofdisableServiceLogs
.
-
Constructor Details
-
ExtractSummaryAction
public ExtractSummaryAction()
-
-
Method Details
-
getActionName
Get the name of action.- Returns:
- the name of action.
-
setActionName
Set the custom name for the action.- Parameters:
actionName
- the custom name for the action.- Returns:
- The
ExtractSummaryAction
object itself.
-
getModelVersion
Gets the version of the text analytics model used by this operation.- Returns:
- The model version.
-
setModelVersion
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:
modelVersion
- The model version.- Returns:
- The
ExtractSummaryAction
object itself.
-
isServiceLogsDisabled
public boolean isServiceLogsDisabled()Gets the value ofdisableServiceLogs
.- Returns:
- The value of
disableServiceLogs
. 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.
-
setServiceLogsDisabled
Sets the value ofdisableServiceLogs
.- Parameters:
disableServiceLogs
- 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:
- The
ExtractSummaryAction
object 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
ExtractSummaryAction
object 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 toSummarySentencesOrder.OFFSET
if not specified.- Parameters:
orderBy
- The type of summary sentences order. Defaults toSummarySentencesOrder.OFFSET
if not specified.- Returns:
- The
ExtractSummaryAction
object itself.
-