Dela via


TextAnalyticsModelFactory.DocumentSentiment Method

Definition

Initializes a new instance of DocumentSentiment for mocking purposes.

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

Parameters

sentiment
TextSentiment

Sets the Sentiment property.

positiveScore
Double

Sets the Positive property.

neutralScore
Double

Sets the Neutral property.

negativeScore
Double

Sets the Negative property.

sentenceSentiments
List<SentenceSentiment>

Sets the Sentences property.

warnings
IList<TextAnalyticsWarning>

Sets the Warnings property.

Returns

A new instance of DocumentSentiment for mocking purposes.

Applies to