TextAnalyticsModelFactory.SentenceSentiment Methode

Definition

Initialisiert eine neue instance von SentenceSentiment für Mockingzwecke.

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

Parameter

sentiment
TextSentiment

Legt die Sentiment-Eigenschaft fest.

text
String

Legt die Text-Eigenschaft fest.

positiveScore
Double

Legt die Positive-Eigenschaft fest.

neutralScore
Double

Legt die Neutral-Eigenschaft fest.

negativeScore
Double

Legt die Negative-Eigenschaft fest.

offset
Int32

Legt die Offset-Eigenschaft fest.

length
Int32

Legt die Length-Eigenschaft fest.

opinions
IEnumerable<SentenceOpinion>

Legt die Opinions-Eigenschaft fest.

Gibt zurück

Eine neue instance von SentenceSentiment für Mockingzwecke.

Gilt für: