TextAnalyticsModelFactory.DocumentSentiment Método

Definição

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

public static Azure.AI.TextAnalytics.DocumentSentiment DocumentSentiment (Azure.AI.TextAnalytics.TextSentiment sentiment, double positiveScore, double neutralScore, double negativeScore, System.Collections.Generic.List<Azure.AI.TextAnalytics.SentenceSentiment> sentenceSentiments, System.Collections.Generic.IList<Azure.AI.TextAnalytics.TextAnalyticsWarning> warnings = default);
static member DocumentSentiment : Azure.AI.TextAnalytics.TextSentiment * double * double * double * System.Collections.Generic.List<Azure.AI.TextAnalytics.SentenceSentiment> * System.Collections.Generic.IList<Azure.AI.TextAnalytics.TextAnalyticsWarning> -> Azure.AI.TextAnalytics.DocumentSentiment
Public Shared Function DocumentSentiment (sentiment As TextSentiment, positiveScore As Double, neutralScore As Double, negativeScore As Double, sentenceSentiments As List(Of SentenceSentiment), Optional warnings As IList(Of TextAnalyticsWarning) = Nothing) As DocumentSentiment

Parâmetros

sentiment
TextSentiment

Define a propriedade Sentiment.

positiveScore
Double

Define a propriedade Positive.

neutralScore
Double

Define a propriedade Neutral.

negativeScore
Double

Define a propriedade Negative.

sentenceSentiments
List<SentenceSentiment>

Define a propriedade Sentences.

warnings
IList<TextAnalyticsWarning>

Define a propriedade Warnings.

Retornos

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

Aplica-se a