Freigeben über


TextAnalyticsModelFactory.AssessmentSentiment Methode

Definition

Initialisiert eine neue instance von AssessmentSentiment für Mockingzwecke.

public static Azure.AI.TextAnalytics.AssessmentSentiment AssessmentSentiment (Azure.AI.TextAnalytics.TextSentiment sentiment, double positiveScore, double negativeScore, string text, bool isNegated, int offset, int length);
static member AssessmentSentiment : Azure.AI.TextAnalytics.TextSentiment * double * double * string * bool * int * int -> Azure.AI.TextAnalytics.AssessmentSentiment
Public Shared Function AssessmentSentiment (sentiment As TextSentiment, positiveScore As Double, negativeScore As Double, text As String, isNegated As Boolean, offset As Integer, length As Integer) As AssessmentSentiment

Parameter

sentiment
TextSentiment

Legt die Sentiment-Eigenschaft fest.

positiveScore
Double

Legt die Positive-Eigenschaft fest.

negativeScore
Double

Legt die Negative-Eigenschaft fest.

text
String

Legt die Text-Eigenschaft fest.

isNegated
Boolean

Legt die IsNegated-Eigenschaft fest.

offset
Int32

Legt die Offset-Eigenschaft fest.

length
Int32

Legt die Length-Eigenschaft fest.

Gibt zurück

Eine neue instance von AssessmentSentiment für Mockingzwecke.

Gilt für: