Freigeben über


TextAnalyticsModelFactory.DocumentSentiment Methode

Definition

Initialisiert eine neue instance von DocumentSentiment für Mockingzwecke.

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

Parameter

sentiment
TextSentiment

Legt die Sentiment-Eigenschaft fest.

positiveScore
Double

Legt die Positive-Eigenschaft fest.

neutralScore
Double

Legt die Neutral-Eigenschaft fest.

negativeScore
Double

Legt die Negative-Eigenschaft fest.

sentenceSentiments
List<SentenceSentiment>

Legt die Sentences-Eigenschaft fest.

warnings
IList<TextAnalyticsWarning>

Legt die Warnings-Eigenschaft fest.

Gibt zurück

Eine neue instance von DocumentSentiment für Mockingzwecke.

Gilt für: