AssessmentSentiment interface
An object that contains the predicted sentiment, confidence scores and other information about an assessment of a target. For example, in the sentence "The food is good", the assessment of the target 'food' is 'good'.
Properties
confidence |
Assessment sentiment confidence scores in the sentence. |
is |
The indicator representing if the assessment is negated. |
length | The length of the assessment. |
offset | The assessment offset from the start of the sentence. |
sentiment | Assessment sentiment in the sentence. |
text | The assessment text detected. |
Property Details
confidenceScores
Assessment sentiment confidence scores in the sentence.
confidenceScores: TargetConfidenceScores
Property Value
isNegated
The indicator representing if the assessment is negated.
isNegated: boolean
Property Value
boolean
length
The length of the assessment.
length: number
Property Value
number
offset
The assessment offset from the start of the sentence.
offset: number
Property Value
number
sentiment
Assessment sentiment in the sentence.
sentiment: TokenSentimentLabel
Property Value
text
The assessment text detected.
text: string
Property Value
string
Azure SDK for JavaScript
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for