TextAnalysisClient.AnalyzeTextOperationAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 System.Threading.Tasks.Task<Azure.Response<Azure.AI.Language.Text.AnalyzeTextOperationState>> AnalyzeTextOperationAsync (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 AnalyzeTextOperationAsync : Azure.AI.Language.Text.MultiLanguageTextInput * seq<Azure.AI.Language.Text.AnalyzeTextOperationAction> * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Language.Text.AnalyzeTextOperationState>>
override this.AnalyzeTextOperationAsync : Azure.AI.Language.Text.MultiLanguageTextInput * seq<Azure.AI.Language.Text.AnalyzeTextOperationAction> * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Language.Text.AnalyzeTextOperationState>>
Public Overridable Function AnalyzeTextOperationAsync (textInput As MultiLanguageTextInput, actions As IEnumerable(Of AnalyzeTextOperationAction), Optional displayName As String = Nothing, Optional defaultLanguage As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
Azure SDK for .NET