Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace SentimentAspect

Sentiment aspect object.

Properties

Optional length

length: undefined | number

Length of aspect text. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

Optional offset

offset: undefined | number

The number of Unicode code points preceding this entity in the submitted text. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

Optional scores

scores: undefined | object

Scores or confidences for each sentiment. Example: {@code {"positive": 1.0, "negative": 0.0}}

Optional sentiment

sentiment: undefined | string

The highest-score sentiment for the aspect text.

Optional text

text: undefined | string

Aspect text.

Functions

getDeserializedJsonObj

getJsonObj