2021-06-16 10:00:25 +00:00
---
2021-06-16 14:06:46 +00:00
language: "en"
tags:
- sentiment
- emotion
- twitter
2021-06-16 10:00:25 +00:00
widget:
2021-06-16 10:03:54 +00:00
- text: "Oh wow. I didn't know that."
2021-06-16 10:00:25 +00:00
- text: "This movie always makes me cry.."
2021-06-17 09:40:51 +00:00
- text: "Oh Happy Day"
2021-06-16 10:00:25 +00:00
---
2021-06-16 09:32:20 +00:00
## Description
2021-06-17 09:23:49 +00:00
With this model, you can classify emotions in English text data. The model was trained on 6 diverse datasets and predicts 7 emotions:
2021-06-16 09:32:20 +00:00
1) anger
2) disgust
3) fear
4) joy
5) neutral
6) sadness
7) surprise
2021-06-16 09:35:11 +00:00
The model is a fine-tuned checkpoint of DistilRoBERTa-base.
2021-06-16 09:32:20 +00:00
## Application
2021-06-16 09:48:55 +00:00
a) Run emotion model with 3 lines of code on single text example using Hugging Face's pipeline command on Google Colab:
2021-06-16 09:29:04 +00:00
[](https://colab.research.google.com/github/j-hartmann/emotion-english-distilroberta-base/blob/main/simple_emotion_pipeline.ipynb)
2021-06-16 09:48:55 +00:00
b) Run emotion model on multiple examples and full datasets (e.g., .csv files) on Google Colab:
2021-06-16 09:29:04 +00:00
2021-06-16 09:34:10 +00:00
[](https://colab.research.google.com/github/j-hartmann/emotion-english-distilroberta-base/blob/main/emotion_prediction_example.ipynb)
## Contact
2021-06-16 09:40:03 +00:00
Please reach out to jochen.hartmann@uni-hamburg.de if you have any questions or feedback.
2021-06-17 09:05:48 +00:00
Thanks to Samuel Domdey and chrsiebert for their support in making this model available.
## Appendix
2021-06-17 09:23:49 +00:00
Please find an overview of the datasets used for training below. The table summarizes which emotions are available in each of the datasets.
2021-06-17 09:05:48 +00:00
2021-06-17 09:10:15 +00:00
|Name|anger|disgust|fear|joy|neutral|sadness|surprise|
|---|---|---|---|---|---|---|---|
2021-06-17 09:23:49 +00:00
|Crowdflower (2016)|Yes|-|-|Yes|Yes|Yes|Yes|
|Emotion Dataset, Elvis et al. (2018)|Yes|Yes|Yes|Yes|-|Yes|Yes|
2021-06-17 09:22:35 +00:00
|GoEmotions, Demszky et al. (2020)|Yes|Yes|Yes|Yes|Yes|Yes|Yes|
2021-06-17 09:23:49 +00:00
|ISEAR, Vikash (2018)|Yes|Yes|Yes|Yes|-|Yes|-|
2021-06-17 09:17:20 +00:00
|MELD, Poria et al. (2019)|Yes|Yes|Yes|Yes|Yes|Yes|Yes|
2021-06-17 09:23:49 +00:00
|SemEval-18|Yes|-|Yes|Yes|-|Yes|-|