AssessmentSentiment interface

AssessmentSentiment 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'.

Extends

Inherited Properties

confidenceScores

Assessment sentiment confidence scores in the sentence.

isNegated

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.

Inherited Property Details

confidenceScores

Assessment sentiment confidence scores in the sentence.

confidenceScores: TargetConfidenceScoreLabel

Property Value

Inherited From SentenceAssessment.confidenceScores

isNegated

The indicator representing if the assessment is negated.

isNegated: boolean

Property Value

boolean

Inherited From SentenceAssessment.isNegated

length

The length of the assessment.

length: number

Property Value

number

Inherited From SentenceAssessment.length

offset

The assessment offset from the start of the sentence.

offset: number

Property Value

number

Inherited From SentenceAssessment.offset

sentiment

Assessment sentiment in the sentence.

sentiment: TokenSentimentValue

Property Value

Inherited From SentenceAssessment.sentiment

text

The assessment text detected.

text: string

Property Value

string

Inherited From SentenceAssessment.text