共用方式為


TextAnalysisModelFactory.SentenceAssessment Method

Definition

Initializes a new instance of SentenceAssessment.

public static Azure.AI.Language.Text.SentenceAssessment SentenceAssessment (Azure.AI.Language.Text.TokenSentiment sentiment = Azure.AI.Language.Text.TokenSentiment.Positive, Azure.AI.Language.Text.TargetConfidenceScoreLabel confidenceScores = default, int offset = 0, int length = 0, string text = default, bool isNegated = false);
static member SentenceAssessment : Azure.AI.Language.Text.TokenSentiment * Azure.AI.Language.Text.TargetConfidenceScoreLabel * int * int * string * bool -> Azure.AI.Language.Text.SentenceAssessment
Public Shared Function SentenceAssessment (Optional sentiment As TokenSentiment = Azure.AI.Language.Text.TokenSentiment.Positive, Optional confidenceScores As TargetConfidenceScoreLabel = Nothing, Optional offset As Integer = 0, Optional length As Integer = 0, Optional text As String = Nothing, Optional isNegated As Boolean = false) As SentenceAssessment

Parameters

sentiment
TokenSentiment

The sentiment of the sentence.

confidenceScores
TargetConfidenceScoreLabel

Represents the confidence scores across all sentiment classes: positive and negative.

offset
Int32

The target offset from the start of the sentence.

length
Int32

The length of the target.

text
String

The target text detected.

isNegated
Boolean

The indicator representing if the assessment is negated.

Returns

A new SentenceAssessment instance for mocking.

Applies to