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

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.

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