Share via


TextAnalyticsModelFactory.AssessmentSentiment Method

Definition

Initializes a new instance of AssessmentSentiment for mocking purposes.

public static Azure.AI.TextAnalytics.AssessmentSentiment AssessmentSentiment (Azure.AI.TextAnalytics.TextSentiment sentiment, double positiveScore, double negativeScore, string text, bool isNegated, int offset, int length);
static member AssessmentSentiment : Azure.AI.TextAnalytics.TextSentiment * double * double * string * bool * int * int -> Azure.AI.TextAnalytics.AssessmentSentiment
Public Shared Function AssessmentSentiment (sentiment As TextSentiment, positiveScore As Double, negativeScore As Double, text As String, isNegated As Boolean, offset As Integer, length As Integer) As AssessmentSentiment

Parameters

sentiment
TextSentiment

Sets the Sentiment property.

positiveScore
Double

Sets the Positive property.

negativeScore
Double

Sets the Negative property.

text
String

Sets the Text property.

isNegated
Boolean

Sets the IsNegated property.

offset
Int32

Sets the Offset property.

length
Int32

Sets the Length property.

Returns

A new instance of AssessmentSentiment for mocking purposes.

Applies to