Compartilhar via


TextAnalysisModelFactory.TextActions Method

Definition

Initializes a new instance of TextActions.

public static Azure.AI.Language.Text.TextActions TextActions (int completed = 0, int failed = 0, int inProgress = 0, int total = 0, System.Collections.Generic.IEnumerable<Azure.AI.Language.Text.AnalyzeTextOperationResult> items = default);
static member TextActions : int * int * int * int * seq<Azure.AI.Language.Text.AnalyzeTextOperationResult> -> Azure.AI.Language.Text.TextActions
Public Shared Function TextActions (Optional completed As Integer = 0, Optional failed As Integer = 0, Optional inProgress As Integer = 0, Optional total As Integer = 0, Optional items As IEnumerable(Of AnalyzeTextOperationResult) = Nothing) As TextActions

Parameters

completed
Int32

Count of completed tasks.

failed
Int32

Count of failed tasks.

inProgress
Int32

Count of inprogress tasks.

total
Int32

Count of total tasks.

items
IEnumerable<AnalyzeTextOperationResult>

Enumerable of Analyze text job results. Please note AnalyzeTextOperationResult is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include AbstractiveSummarizationOperationResult, CustomEntityRecognitionOperationResult, CustomMultiLabelClassificationOperationResult, CustomSingleLabelClassificationOperationResult, EntityLinkingOperationResult, EntityRecognitionOperationResult, ExtractiveSummarizationOperationResult, HealthcareOperationResult, KeyPhraseExtractionOperationResult, PiiEntityRecognitionOperationResult and SentimentOperationResult.

Returns

A new TextActions instance for mocking.

Applies to