Compartilhar via


TextAnalyticsModelFactory.AssessmentSentiment Método

Definição

Inicializa uma nova instância de AssessmentSentiment para fins de simulação.

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

Parâmetros

sentiment
TextSentiment

Define a propriedade Sentiment.

positiveScore
Double

Define a propriedade Positive.

negativeScore
Double

Define a propriedade Negative.

text
String

Define a propriedade Text.

isNegated
Boolean

Define a propriedade IsNegated.

offset
Int32

Define a propriedade Offset.

length
Int32

Define a propriedade Length.

Retornos

Uma nova instância de AssessmentSentiment para fins de simulação.

Aplica-se a