Share via


ExtractKeyPhrasesAction Class

Definition

Configurations that allow callers to specify details about how to execute an Extract KeyPhrases action in a set of documents. For example, set model version and disable service logging.

public class ExtractKeyPhrasesAction
type ExtractKeyPhrasesAction = class
Public Class ExtractKeyPhrasesAction
Inheritance
ExtractKeyPhrasesAction

Constructors

ExtractKeyPhrasesAction()

Initializes a new instance of the ExtractKeyPhrasesAction class which allows callers to specify details about how to execute an Extract KeyPhrases action in a set of documents. For example, set model version and disable service logging.

ExtractKeyPhrasesAction(TextAnalyticsRequestOptions)

Initializes a new instance of the ExtractKeyPhrasesAction class based on the values of a TextAnalyticsRequestOptions. It sets the ModelVersion and DisableServiceLogs properties.

Properties

ActionName

Gets or sets a name for this action. If not provided, the service will generate one.

DisableServiceLogs

The default value of this property is 'false'. This means, the Language 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.

Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI principles at https://www.microsoft.com/ai/responsible-ai.

ModelVersion

Gets or sets a value that, if set, indicates the version of the Language service model that will be used to generate the result. For supported model versions, see operation-specific documentation, for example: https://docs.microsoft.com/azure/cognitive-services/language-service/concepts/model-lifecycle#available-versions.

Applies to