Class ExtractiveSummaryAction

java.lang.Object
com.azure.ai.textanalytics.models.ExtractiveSummaryAction

public final class ExtractiveSummaryAction extends Object
Configurations that allow callers to specify details about how to execute an extractive summarization action in a set of documents.
  • Constructor Details

    • ExtractiveSummaryAction

      public ExtractiveSummaryAction()
      Constructs a ExtractiveSummaryAction model.
  • Method Details

    • getActionName

      public String getActionName()
      Get the name of action.
      Returns:
      the name of action.
    • setActionName

      public ExtractiveSummaryAction setActionName(String actionName)
      Set the custom name for the action.
      Parameters:
      actionName - the custom name for the action.
      Returns:
      The ExtractiveSummaryAction object itself.
    • getModelVersion

      public String getModelVersion()
      Gets the version of the text analytics model used by this operation.
      Returns:
      The model version.
    • 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:
      modelVersion - The model version.
      Returns:
      The ExtractiveSummaryAction object itself.
    • isServiceLogsDisabled

      public boolean isServiceLogsDisabled()
      Gets the value of disableServiceLogs.
      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

      public ExtractiveSummaryAction setServiceLogsDisabled(boolean disableServiceLogs)
      Sets the value of disableServiceLogs.
      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 ExtractiveSummaryAction object itself.
    • 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:
      The maximum extractive summarization sentences number to be returned in the response.
    • 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:
      maxSentenceCount - The maximum extractive summarization sentences number to be returned in the response.
      Returns:
      The ExtractiveSummaryAction object itself.
    • getOrderBy

      public ExtractiveSummarySentencesOrder 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 to ExtractiveSummarySentencesOrder.OFFSET if not specified.
      Parameters:
      orderBy - The type of summary sentences order. Defaults to ExtractiveSummarySentencesOrder.OFFSET if not specified.
      Returns:
      The ExtractiveSummaryAction object itself.