Compartilhar via


TextAnalysisClient.AnalyzeTextOperation Method

Definition

Submit a collection of text documents for analysis and get the results. Specify one or more unique tasks to be executed as a long-running operation.

public virtual Azure.Response<Azure.AI.Language.Text.AnalyzeTextOperationState> AnalyzeTextOperation (Azure.AI.Language.Text.MultiLanguageTextInput textInput, System.Collections.Generic.IEnumerable<Azure.AI.Language.Text.AnalyzeTextOperationAction> actions, string displayName = default, string defaultLanguage = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AnalyzeTextOperation : Azure.AI.Language.Text.MultiLanguageTextInput * seq<Azure.AI.Language.Text.AnalyzeTextOperationAction> * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Language.Text.AnalyzeTextOperationState>
override this.AnalyzeTextOperation : Azure.AI.Language.Text.MultiLanguageTextInput * seq<Azure.AI.Language.Text.AnalyzeTextOperationAction> * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Language.Text.AnalyzeTextOperationState>
Public Overridable Function AnalyzeTextOperation (textInput As MultiLanguageTextInput, actions As IEnumerable(Of AnalyzeTextOperationAction), Optional displayName As String = Nothing, Optional defaultLanguage As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AnalyzeTextOperationState)

Parameters

textInput
MultiLanguageTextInput

Contains the input to be analyzed.

actions
IEnumerable<AnalyzeTextOperationAction>

List of tasks to be performed as part of the LRO.

displayName
String

Name for the task.

defaultLanguage
String

Default language to use for records requesting automatic language detection.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

textInput or actions is null.

Applies to