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
    }
  ]
}
x
We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.