Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace SentimentDocumentResult

The document response for sentiment detect call.

Properties

aspects

aspects: Array<SentimentAspect>

List of detected aspects sentiment.

Optional documentScores

documentScores: undefined | object

Scores for each sentiment. Example: {"positive": 1.0, "negative": 0.0}

Optional documentSentiment

documentSentiment: undefined | string

Document level sentiment.

key

key: string

Document unique identifier defined by the user.

languageCode

languageCode: string

Language code supported

  • auto : Automatically detect language
  • ar : Arabic
  • pt-BR : Brazilian Portuguese
  • cs : Czech
  • da : Danish
  • nl : Dutch
  • en : English
  • fi : Finnish
  • fr : French
  • fr-CA : Canadian French
  • de : German
  • it : Italian
  • ja : Japanese
  • ko : Korean
  • no : Norwegian
  • pl : Polish
  • ro : Romanian
  • zh-CN : Simplified Chinese
  • es : Spanish
  • sv : Swedish
  • zh-TW : Traditional Chinese
  • tr : Turkish
  • el : Greek
  • he : Hebrew

Optional sentences

List of detected sentences sentiment.

Functions

getDeserializedJsonObj

getJsonObj