Compartir a través de


TextAnalyticsModelFactory.DocumentSentiment Método

Definición

Inicializa una nueva instancia de DocumentSentiment para fines ficticios.

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

Establece la propiedad Sentiment.

positiveScore
Double

Establece la propiedad Positive.

neutralScore
Double

Establece la propiedad Neutral.

negativeScore
Double

Establece la propiedad Negative.

sentenceSentiments
List<SentenceSentiment>

Establece la propiedad Sentences.

warnings
IList<TextAnalyticsWarning>

Establece la propiedad Warnings.

Devoluciones

Nueva instancia de DocumentSentiment para fines ficticios.

Se aplica a