Share via


TextAnalysisAuthoringModelFactory.DocumentSentimentLabelEvalResult Method

Definition

Initializes a new instance of DocumentSentimentLabelEvalResult.

public static Azure.AI.Language.Text.Authoring.DocumentSentimentLabelEvalResult DocumentSentimentLabelEvalResult(Azure.AI.Language.Text.Authoring.TextAuthoringSentiment category = default, int offset = 0, int length = 0);
static member DocumentSentimentLabelEvalResult : Azure.AI.Language.Text.Authoring.TextAuthoringSentiment * int * int -> Azure.AI.Language.Text.Authoring.DocumentSentimentLabelEvalResult
Public Shared Function DocumentSentimentLabelEvalResult (Optional category As TextAuthoringSentiment = Nothing, Optional offset As Integer = 0, Optional length As Integer = 0) As DocumentSentimentLabelEvalResult

Parameters

category
TextAuthoringSentiment

Represents the sentiment category.

offset
Int32

Represents the sentiment offset index relative to the original text.

length
Int32

Represents the sentiment length.

Returns

A new DocumentSentimentLabelEvalResult instance for mocking.

Applies to