TextAnalyticsModelFactory.AssessmentSentiment(TextSentiment, Double, Double, String, Boolean, Int32, Int32) 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
System.Double

Sets the Positive property.

negativeScore
System.Double

Sets the Negative property.

text
System.String

Sets the Text property.

isNegated
System.Boolean

Sets the IsNegated property.

offset
System.Int32

Sets the Offset property.

length
System.Int32

Sets the Length property.

Returns

AssessmentSentiment

A new instance of AssessmentSentiment for mocking purposes.

Applies to