TextAnalyticsModelFactory.TargetSentiment Método

Definição

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

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

Parâmetros

sentiment
TextSentiment

Define a propriedade Sentiment.

text
String

Define a propriedade Text.

positiveScore
Double

Define a propriedade Positive.

negativeScore
Double

Define a propriedade Negative.

offset
Int32

Define a propriedade Offset.

length
Int32

Define a propriedade Length.

Retornos

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

Aplica-se a