ExtractiveSummaryOptions Class
- java.
lang. Object - com.
azure. ai. textanalytics. models. TextAnalyticsRequestOptions - com.
azure. ai. textanalytics. models. ExtractiveSummaryOptions
- com.
- com.
public final class ExtractiveSummaryOptions
extends TextAnalyticsRequestOptions
Configurations that allow callers to specify details about how to execute an extractive summarization in a set of documents.
Constructor Summary
| Constructor | Description |
|---|---|
| ExtractiveSummaryOptions() |
Constructs a |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
getDisplayName()
Gets display name of the operation. |
| Integer |
getMaxSentenceCount()
Gets the maximum extractive summarization sentences number to be returned in the response. |
|
Extractive |
getOrderBy()
Gets the order in which the summary sentences will be presented by. |
|
Extractive |
setDisplayName(String displayName)
Sets display name of the operation. |
|
Extractive |
setIncludeStatistics(boolean includeStatistics)
Sets the value of |
|
Extractive |
setMaxSentenceCount(Integer maxSentenceCount)
Sets the maximum extractive summarization sentences number to be returned in the response. |
|
Extractive |
setModelVersion(String modelVersion)
Sets 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 service logs disable status. |
Methods inherited from TextAnalyticsRequestOptions
Methods inherited from java.lang.Object
Constructor Details
ExtractiveSummaryOptions
public ExtractiveSummaryOptions()
Constructs a ExtractiveSummaryOptions model.
Method Details
getDisplayName
public String getDisplayName()
Gets display name of the operation.
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:
getOrderBy
public ExtractiveSummarySentencesOrder getOrderBy()
Gets the order in which the summary sentences will be presented by.
Returns:
setDisplayName
public ExtractiveSummaryOptions setDisplayName(String displayName)
Sets display name of the operation.
Parameters:
Returns:
ExtractiveSummaryOptions object itself.setIncludeStatistics
public ExtractiveSummaryOptions setIncludeStatistics(boolean includeStatistics)
Sets 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.
Overrides:
ExtractiveSummaryOptions.setIncludeStatistics(boolean includeStatistics)Parameters:
Returns:
ExtractiveSummaryOptions object itself.setMaxSentenceCount
public ExtractiveSummaryOptions 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:
ExtractiveSummaryOptions object itself.setModelVersion
public ExtractiveSummaryOptions setModelVersion(String modelVersion)
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:
ExtractiveSummaryOptions.setModelVersion(String modelVersion)Parameters:
Returns:
ExtractiveSummaryOptions object itself.setOrderBy
public ExtractiveSummaryOptions setOrderBy(ExtractiveSummarySentencesOrder orderBy)
Sets the order in which the summary sentences will be presented by. Defaults to OFFSET if not specified.
Parameters:
Returns:
ExtractiveSummaryOptions object itself.setServiceLogsDisabled
public ExtractiveSummaryOptions setServiceLogsDisabled(boolean disableServiceLogs)
Sets the value of service logs disable status.
Overrides:
ExtractiveSummaryOptions.setServiceLogsDisabled(boolean disableServiceLogs)Parameters:
Returns:
ExtractiveSummaryOptions object itself.