yukiarimo commited on
Commit
800ffd3
β€’
1 Parent(s): 06ee62d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -84
README.md CHANGED
@@ -4,8 +4,6 @@ tags:
4
  - distilroberta
5
  - sentiment
6
  - emotion
7
- - twitter
8
- - reddit
9
 
10
  widget:
11
  - text: "Oh wow. I didn't know that."
@@ -14,11 +12,8 @@ widget:
14
 
15
  ---
16
 
17
- # Emotion English DistilRoBERTa-base
18
-
19
- # Description β„Ή
20
-
21
- With this model, you can classify emotions in English text data. The model was trained on 6 diverse datasets (see Appendix below) and predicts Ekman's 6 basic emotions, plus a neutral class:
22
 
23
  1) anger 🀬
24
  2) disgust 🀒
@@ -27,80 +22,3 @@ With this model, you can classify emotions in English text data. The model was t
27
  5) neutral 😐
28
  6) sadness 😭
29
  7) surprise 😲
30
-
31
- The model is a fine-tuned checkpoint of [DistilRoBERTa-base](https://huggingface.co/distilroberta-base). For a 'non-distilled' emotion model, please refer to the model card of the [RoBERTa-large](https://huggingface.co/j-hartmann/emotion-english-roberta-large) version.
32
-
33
- # Application πŸš€
34
-
35
- a) Run emotion model with 3 lines of code on single text example using Hugging Face's pipeline command on Google Colab:
36
-
37
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/j-hartmann/emotion-english-distilroberta-base/blob/main/simple_emotion_pipeline.ipynb)
38
-
39
- ```python
40
- from transformers import pipeline
41
- classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base", return_all_scores=True)
42
- classifier("I love this!")
43
- ```
44
-
45
- ```python
46
- Output:
47
- [[{'label': 'anger', 'score': 0.004419783595949411},
48
- {'label': 'disgust', 'score': 0.0016119900392368436},
49
- {'label': 'fear', 'score': 0.0004138521908316761},
50
- {'label': 'joy', 'score': 0.9771687984466553},
51
- {'label': 'neutral', 'score': 0.005764586851000786},
52
- {'label': 'sadness', 'score': 0.002092392183840275},
53
- {'label': 'surprise', 'score': 0.008528684265911579}]]
54
- ```
55
-
56
- b) Run emotion model on multiple examples and full datasets (e.g., .csv files) on Google Colab:
57
-
58
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/j-hartmann/emotion-english-distilroberta-base/blob/main/emotion_prediction_example.ipynb)
59
-
60
- # Contact πŸ’»
61
-
62
- Please reach out to [jochen.hartmann@tum.de](mailto:jochen.hartmann@tum.de) if you have any questions or feedback.
63
-
64
- Thanks to Samuel Domdey and [chrsiebert](https://huggingface.co/siebert) for their support in making this model available.
65
-
66
- # Reference βœ…
67
-
68
- For attribution, please cite the following reference if you use this model. A working paper will be available soon.
69
-
70
- ```
71
- Jochen Hartmann, "Emotion English DistilRoBERTa-base". https://huggingface.co/j-hartmann/emotion-english-distilroberta-base/, 2022.
72
- ```
73
-
74
- BibTex citation:
75
-
76
- ```
77
- @misc{hartmann2022emotionenglish,
78
- author={Hartmann, Jochen},
79
- title={Emotion English DistilRoBERTa-base},
80
- year={2022},
81
- howpublished = {\url{https://huggingface.co/j-hartmann/emotion-english-distilroberta-base/}},
82
- }
83
- ```
84
-
85
- # Appendix πŸ“š
86
-
87
- Please find an overview of the datasets used for training below. All datasets contain English text. The table summarizes which emotions are available in each of the datasets. The datasets represent a diverse collection of text types. Specifically, they contain emotion labels for texts from Twitter, Reddit, student self-reports, and utterances from TV dialogues. As MELD (Multimodal EmotionLines Dataset) extends the popular EmotionLines dataset, EmotionLines itself is not included here.
88
-
89
- |Name|anger|disgust|fear|joy|neutral|sadness|surprise|
90
- |---|---|---|---|---|---|---|---|
91
- |Crowdflower (2016)|Yes|-|-|Yes|Yes|Yes|Yes|
92
- |Emotion Dataset, Elvis et al. (2018)|Yes|-|Yes|Yes|-|Yes|Yes|
93
- |GoEmotions, Demszky et al. (2020)|Yes|Yes|Yes|Yes|Yes|Yes|Yes|
94
- |ISEAR, Vikash (2018)|Yes|Yes|Yes|Yes|-|Yes|-|
95
- |MELD, Poria et al. (2019)|Yes|Yes|Yes|Yes|Yes|Yes|Yes|
96
- |SemEval-2018, EI-reg, Mohammad et al. (2018) |Yes|-|Yes|Yes|-|Yes|-|
97
-
98
- The model is trained on a balanced subset from the datasets listed above (2,811 observations per emotion, i.e., nearly 20k observations in total). 80% of this balanced subset is used for training and 20% for evaluation. The evaluation accuracy is 66% (vs. the random-chance baseline of 1/7 = 14%).
99
-
100
- # Scientific Applications πŸ“–
101
-
102
- Below you can find a list of papers using "Emotion English DistilRoBERTa-base". If you would like your paper to be added to the list, please send me an email.
103
-
104
- - Butt, S., Sharma, S., Sharma, R., Sidorov, G., & Gelbukh, A. (2022). What goes on inside rumour and non-rumour tweets and their reactions: A Psycholinguistic Analyses. Computers in Human Behavior, 107345.
105
- - Kuang, Z., Zong, S., Zhang, J., Chen, J., & Liu, H. (2022). Music-to-Text Synaesthesia: Generating Descriptive Text from Music Recordings. arXiv preprint arXiv:2210.00434.
106
- - Rozado, D., Hughes, R., & Halberstadt, J. (2022). Longitudinal analysis of sentiment and emotion in news media headlines using automated labelling with Transformer language models. Plos one, 17(10), e0276367.
 
4
  - distilroberta
5
  - sentiment
6
  - emotion
 
 
7
 
8
  widget:
9
  - text: "Oh wow. I didn't know that."
 
12
 
13
  ---
14
 
15
+ # Yuna Emotion
16
+ This is an AGI model for Yuna AI. 7 emotions are available:
 
 
 
17
 
18
  1) anger 🀬
19
  2) disgust 🀒
 
22
  5) neutral 😐
23
  6) sadness 😭
24
  7) surprise 😲