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