Share via


TextAnalysisAuthoringModelFactory.DocumentTextSentimentEvalResult Method

Definition

Initializes a new instance of DocumentTextSentimentEvalResult.

public static Azure.AI.Language.Text.Authoring.DocumentTextSentimentEvalResult DocumentTextSentimentEvalResult(System.Collections.Generic.IEnumerable<Azure.AI.Language.Text.Authoring.DocumentSentimentLabelEvalResult> expectedSentimentSpans = default, System.Collections.Generic.IEnumerable<Azure.AI.Language.Text.Authoring.DocumentSentimentLabelEvalResult> predictedSentimentSpans = default);
static member DocumentTextSentimentEvalResult : seq<Azure.AI.Language.Text.Authoring.DocumentSentimentLabelEvalResult> * seq<Azure.AI.Language.Text.Authoring.DocumentSentimentLabelEvalResult> -> Azure.AI.Language.Text.Authoring.DocumentTextSentimentEvalResult
Public Shared Function DocumentTextSentimentEvalResult (Optional expectedSentimentSpans As IEnumerable(Of DocumentSentimentLabelEvalResult) = Nothing, Optional predictedSentimentSpans As IEnumerable(Of DocumentSentimentLabelEvalResult) = Nothing) As DocumentTextSentimentEvalResult

Parameters

expectedSentimentSpans
IEnumerable<DocumentSentimentLabelEvalResult>

Represents the document's expected sentiment labels.

predictedSentimentSpans
IEnumerable<DocumentSentimentLabelEvalResult>

Represents the document's predicted sentiment labels.

Returns

A new DocumentTextSentimentEvalResult instance for mocking.

Applies to