Compartilhar via


TextAnalyticsModelFactory.SentenceSentiment Método

Definição

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

public static Azure.AI.TextAnalytics.SentenceSentiment SentenceSentiment (Azure.AI.TextAnalytics.TextSentiment sentiment, string text, double positiveScore, double neutralScore, double negativeScore, int offset, int length, System.Collections.Generic.IEnumerable<Azure.AI.TextAnalytics.SentenceOpinion> opinions);
static member SentenceSentiment : Azure.AI.TextAnalytics.TextSentiment * string * double * double * double * int * int * seq<Azure.AI.TextAnalytics.SentenceOpinion> -> Azure.AI.TextAnalytics.SentenceSentiment
Public Shared Function SentenceSentiment (sentiment As TextSentiment, text As String, positiveScore As Double, neutralScore As Double, negativeScore As Double, offset As Integer, length As Integer, opinions As IEnumerable(Of SentenceOpinion)) As SentenceSentiment

Parâmetros

sentiment
TextSentiment

Define a propriedade Sentiment.

text
String

Define a propriedade Text.

positiveScore
Double

Define a propriedade Positive.

neutralScore
Double

Define a propriedade Neutral.

negativeScore
Double

Define a propriedade Negative.

offset
Int32

Define a propriedade Offset.

length
Int32

Define a propriedade Length.

opinions
IEnumerable<SentenceOpinion>

Define a propriedade Opinions.

Retornos

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

Aplica-se a