Compartir a través de


TextAnalyticsModelFactory.SentenceSentiment Método

Definición

Inicializa una nueva instancia de SentenceSentiment para fines ficticios.

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

Establece la propiedad Sentiment.

text
String

Establece la propiedad Text.

positiveScore
Double

Establece la propiedad Positive.

neutralScore
Double

Establece la propiedad Neutral.

negativeScore
Double

Establece la propiedad Negative.

offset
Int32

Establece la propiedad Offset.

length
Int32

Establece la propiedad Length.

opinions
IEnumerable<SentenceOpinion>

Establece la propiedad Opinions.

Devoluciones

Nueva instancia de SentenceSentiment para fines ficticios.

Se aplica a