Delen via


TextAnalyticsModelFactory.SentenceSentiment Method

Definition

Initializes a new instance of SentenceSentiment for mocking purposes.

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

Parameters

sentiment
TextSentiment

Sets the Sentiment property.

text
String

Sets the Text property.

positiveScore
Double

Sets the Positive property.

neutralScore
Double

Sets the Neutral property.

negativeScore
Double

Sets the Negative property.

offset
Int32

Sets the Offset property.

length
Int32

Sets the Length property.

opinions
IEnumerable<SentenceOpinion>

Sets the Opinions property.

Returns

A new instance of SentenceSentiment for mocking purposes.

Applies to