Delen via


TextAnalyticsClient.AnalyzeActions Method

Definition

Overloads

AnalyzeActions(WaitUntil, IEnumerable<String>, TextAnalyticsActions, String, AnalyzeActionsOptions, CancellationToken)

Performs one or more text analysis actions on a set of documents. The list of supported actions includes:

  • Entity Recognition (Named, Linked, and Personally Identifiable Information (PII) entities)
  • Key Phrases Extraction
  • Sentiment Analysis
  • Custom Entity Recognition
  • Custom Single and Multi Label Classification
  • Extractive Summarization
  • Abstractive Summarization

For document length limits, maximum batch size, and supported text encoding, see here.

AnalyzeActions(WaitUntil, IEnumerable<TextDocumentInput>, TextAnalyticsActions, AnalyzeActionsOptions, CancellationToken)

Performs one or more text analysis actions on a set of documents. The list of supported actions includes:

  • Entity Recognition (Named, Linked, and Personally Identifiable Information (PII) entities)
  • Key Phrases Extraction
  • Sentiment Analysis
  • Custom Entity Recognition
  • Custom Single and Multi Label Classification
  • Extractive Summarization
  • Abstractive Summarization

For document length limits, maximum batch size, and supported text encoding, see here.

AnalyzeActions(WaitUntil, IEnumerable<String>, TextAnalyticsActions, String, AnalyzeActionsOptions, CancellationToken)

Source:
TextAnalyticsClient.cs

Performs one or more text analysis actions on a set of documents. The list of supported actions includes:

  • Entity Recognition (Named, Linked, and Personally Identifiable Information (PII) entities)
  • Key Phrases Extraction
  • Sentiment Analysis
  • Custom Entity Recognition
  • Custom Single and Multi Label Classification
  • Extractive Summarization
  • Abstractive Summarization

For document length limits, maximum batch size, and supported text encoding, see here.

public virtual Azure.AI.TextAnalytics.AnalyzeActionsOperation AnalyzeActions (Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable<string> documents, Azure.AI.TextAnalytics.TextAnalyticsActions actions, string language = default, Azure.AI.TextAnalytics.AnalyzeActionsOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AnalyzeActions : Azure.WaitUntil * seq<string> * Azure.AI.TextAnalytics.TextAnalyticsActions * string * Azure.AI.TextAnalytics.AnalyzeActionsOptions * System.Threading.CancellationToken -> Azure.AI.TextAnalytics.AnalyzeActionsOperation
override this.AnalyzeActions : Azure.WaitUntil * seq<string> * Azure.AI.TextAnalytics.TextAnalyticsActions * string * Azure.AI.TextAnalytics.AnalyzeActionsOptions * System.Threading.CancellationToken -> Azure.AI.TextAnalytics.AnalyzeActionsOperation
Public Overridable Function AnalyzeActions (waitUntil As WaitUntil, documents As IEnumerable(Of String), actions As TextAnalyticsActions, Optional language As String = Nothing, Optional options As AnalyzeActionsOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AnalyzeActionsOperation

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation.

documents
IEnumerable<String>

The list of documents to analyze.

actions
TextAnalyticsActions

The TextAnalyticsActions to perform on the list of documents.

language
String

The language that the document is written in.

options
AnalyzeActionsOptions

The AnalyzeActionsOptions used to configure the operation.

cancellationToken
CancellationToken

The CancellationToken controlling the lifetime of the request.

Returns

Exceptions

This method is only supported in service API version v3.1 and newer. The AnalyzeHealthcareEntitiesAction, MultiLabelClassifyAction, RecognizeCustomEntitiesAction, and SingleLabelClassifyAction are only supported in service API version 2022-05-01 and newer. The ExtractiveSummarizeAction and AbstractiveSummarizeAction are only supported in service API version 2023-04-01 and newer.

Service returned a non-success status code.

Remarks

This method is only available for V3_1, V2022_05_01, and newer. See the service documentation for regional support of custom action features.

Applies to

AnalyzeActions(WaitUntil, IEnumerable<TextDocumentInput>, TextAnalyticsActions, AnalyzeActionsOptions, CancellationToken)

Source:
TextAnalyticsClient.cs

Performs one or more text analysis actions on a set of documents. The list of supported actions includes:

  • Entity Recognition (Named, Linked, and Personally Identifiable Information (PII) entities)
  • Key Phrases Extraction
  • Sentiment Analysis
  • Custom Entity Recognition
  • Custom Single and Multi Label Classification
  • Extractive Summarization
  • Abstractive Summarization

For document length limits, maximum batch size, and supported text encoding, see here.

public virtual Azure.AI.TextAnalytics.AnalyzeActionsOperation AnalyzeActions (Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable<Azure.AI.TextAnalytics.TextDocumentInput> documents, Azure.AI.TextAnalytics.TextAnalyticsActions actions, Azure.AI.TextAnalytics.AnalyzeActionsOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AnalyzeActions : Azure.WaitUntil * seq<Azure.AI.TextAnalytics.TextDocumentInput> * Azure.AI.TextAnalytics.TextAnalyticsActions * Azure.AI.TextAnalytics.AnalyzeActionsOptions * System.Threading.CancellationToken -> Azure.AI.TextAnalytics.AnalyzeActionsOperation
override this.AnalyzeActions : Azure.WaitUntil * seq<Azure.AI.TextAnalytics.TextDocumentInput> * Azure.AI.TextAnalytics.TextAnalyticsActions * Azure.AI.TextAnalytics.AnalyzeActionsOptions * System.Threading.CancellationToken -> Azure.AI.TextAnalytics.AnalyzeActionsOperation
Public Overridable Function AnalyzeActions (waitUntil As WaitUntil, documents As IEnumerable(Of TextDocumentInput), actions As TextAnalyticsActions, Optional options As AnalyzeActionsOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AnalyzeActionsOperation

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation.

documents
IEnumerable<TextDocumentInput>

The list of documents to analyze.

actions
TextAnalyticsActions

The TextAnalyticsActions to perform on the list of documents.

options
AnalyzeActionsOptions

The AnalyzeActionsOptions used to configure the operation.

cancellationToken
CancellationToken

The CancellationToken controlling the lifetime of the request.

Returns

Exceptions

This method is only supported in service API version v3.1 and newer. The AnalyzeHealthcareEntitiesAction, MultiLabelClassifyAction, RecognizeCustomEntitiesAction, and SingleLabelClassifyAction are only supported in service API version 2022-05-01 and newer. The ExtractiveSummarizeAction and AbstractiveSummarizeAction are only supported in service API version 2023-04-01 and newer.

Service returned a non-success status code.

Remarks

This method is only available for V3_1, V2022_05_01, and newer. See the service documentation for regional support of custom action features.

Applies to