Share via


TextAnalyticsModelFactory.ClassifyDocumentResult Method

Definition

Overloads

ClassifyDocumentResult(String, TextAnalyticsError)

Initializes a new instance of ClassifyDocumentResult for mocking purposes.

ClassifyDocumentResult(String, TextDocumentStatistics, ClassificationCategoryCollection, IEnumerable<TextAnalyticsWarning>)

Initializes a new instance of ClassifyDocumentResult for mocking purposes.

ClassifyDocumentResult(String, TextAnalyticsError)

Source:
TextAnalyticsModelFactory.cs

Initializes a new instance of ClassifyDocumentResult for mocking purposes.

public static Azure.AI.TextAnalytics.ClassifyDocumentResult ClassifyDocumentResult (string id, Azure.AI.TextAnalytics.TextAnalyticsError error);
static member ClassifyDocumentResult : string * Azure.AI.TextAnalytics.TextAnalyticsError -> Azure.AI.TextAnalytics.ClassifyDocumentResult
Public Shared Function ClassifyDocumentResult (id As String, error As TextAnalyticsError) As ClassifyDocumentResult

Parameters

id
String

Sets the Id property.

error
TextAnalyticsError

Sets the Error property.

Returns

A new instance of ClassifyDocumentResult for mocking purposes.

Applies to

ClassifyDocumentResult(String, TextDocumentStatistics, ClassificationCategoryCollection, IEnumerable<TextAnalyticsWarning>)

Source:
TextAnalyticsModelFactory.cs

Initializes a new instance of ClassifyDocumentResult for mocking purposes.

public static Azure.AI.TextAnalytics.ClassifyDocumentResult ClassifyDocumentResult (string id, Azure.AI.TextAnalytics.TextDocumentStatistics statistics, Azure.AI.TextAnalytics.ClassificationCategoryCollection documentClassificationCollection, System.Collections.Generic.IEnumerable<Azure.AI.TextAnalytics.TextAnalyticsWarning> warnings = default);
static member ClassifyDocumentResult : string * Azure.AI.TextAnalytics.TextDocumentStatistics * Azure.AI.TextAnalytics.ClassificationCategoryCollection * seq<Azure.AI.TextAnalytics.TextAnalyticsWarning> -> Azure.AI.TextAnalytics.ClassifyDocumentResult
Public Shared Function ClassifyDocumentResult (id As String, statistics As TextDocumentStatistics, documentClassificationCollection As ClassificationCategoryCollection, Optional warnings As IEnumerable(Of TextAnalyticsWarning) = Nothing) As ClassifyDocumentResult

Parameters

id
String

Sets the Id property.

statistics
TextDocumentStatistics

Sets the Statistics property.

documentClassificationCollection
ClassificationCategoryCollection

Sets the of ClassificationCategories.

warnings
IEnumerable<TextAnalyticsWarning>

Sets the collection of Warnings.

Returns

A new instance of ClassifyDocumentResult for mocking purposes.

Applies to