Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

/wiki/spaces/VDOC/pages/963346533

The sentiment classifier analyzes text to identify and extract opinions. Analysis is at the sentence level. Positive, neutral, and negative sentiments are each rated from 0 - 1 (total value of all three scores is 1.) 

...

Syntax


Div
stylefont-size: small;


Code Block
"sentiments": [
  {
    "sentiment": "neu",
    "score": <0-1>
  },
  {
    "sentiment": "neg",
    "score": <0-1>
  },
  {
    "sentiment": "pos",
    "score": <0-1>
  }
]




Example


Div
stylefont-size: small;


Code Block
"sentiments": [
  {
    "sentiment": "neu",
    "score": 0.53
  },
  {
    "sentiment": "neg",
    "score": 0.41
  },
  {
    "sentiment": "pos",
    "score": 0.06
  }
]



Data TypeArray of objects
RequiredNo
Page Element Analyzed

Text

Used ForTargeting/anti-targeting
More Information/wiki/spaces/VDOC/pages/920781072Yes