Einstein Sentiment

This sentiment analysis model automatically determines if a text sample is positive, negative, or neutral. The model was trained on data aggregated from multiple sources. Mostly short snippets of text and comparable to what you might find in a public forum.

Documentation

Model id

CommunitySentiment

Request & response

$ curl -X POST -H "Authorization: Bearer <TOKEN>" -H "Cache-Control: no-cache" -H "Content-Type: multipart/form-data" -F "modelId=CommunitySentiment" -F "document=the presentation was great and I learned a lot"  https://api.einstein.ai/v2/language/sentiment
{
  "probabilities": [
    {
      "label": "positive",
      "probability": 0.8673582
    },
    {
      "label": "negative",
      "probability": 0.1316828
    },
    {
      "label": "neutral",
      "probability": 0.0009590242
    }
  ]
}