bijl Satya10 commited on
Commit
2c626ba
·
0 Parent(s):

Duplicate from mteb/emotion

Browse files

Co-authored-by: Satya <Satya10@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ftz filter=lfs diff=lfs merge=lfs -text
6
+ *.gz filter=lfs diff=lfs merge=lfs -text
7
+ *.h5 filter=lfs diff=lfs merge=lfs -text
8
+ *.joblib filter=lfs diff=lfs merge=lfs -text
9
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
10
+ *.model filter=lfs diff=lfs merge=lfs -text
11
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
12
+ *.onnx filter=lfs diff=lfs merge=lfs -text
13
+ *.ot filter=lfs diff=lfs merge=lfs -text
14
+ *.parquet filter=lfs diff=lfs merge=lfs -text
15
+ *.pb filter=lfs diff=lfs merge=lfs -text
16
+ *.pt filter=lfs diff=lfs merge=lfs -text
17
+ *.pth filter=lfs diff=lfs merge=lfs -text
18
+ *.rar filter=lfs diff=lfs merge=lfs -text
19
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
20
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
21
+ *.tflite filter=lfs diff=lfs merge=lfs -text
22
+ *.tgz filter=lfs diff=lfs merge=lfs -text
23
+ *.wasm filter=lfs diff=lfs merge=lfs -text
24
+ *.xz filter=lfs diff=lfs merge=lfs -text
25
+ *.zip filter=lfs diff=lfs merge=lfs -text
26
+ *.zstandard filter=lfs diff=lfs merge=lfs -text
27
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
28
+ # Audio files - uncompressed
29
+ *.pcm filter=lfs diff=lfs merge=lfs -text
30
+ *.sam filter=lfs diff=lfs merge=lfs -text
31
+ *.raw filter=lfs diff=lfs merge=lfs -text
32
+ # Audio files - compressed
33
+ *.aac filter=lfs diff=lfs merge=lfs -text
34
+ *.flac filter=lfs diff=lfs merge=lfs -text
35
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
36
+ *.ogg filter=lfs diff=lfs merge=lfs -text
37
+ *.wav filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,244 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - human-annotated
4
+ language:
5
+ - eng
6
+ license: unknown
7
+ multilinguality: monolingual
8
+ task_categories:
9
+ - text-classification
10
+ task_ids:
11
+ - sentiment-analysis
12
+ - sentiment-scoring
13
+ - sentiment-classification
14
+ - hate-speech-detection
15
+ tags:
16
+ - mteb
17
+ - text
18
+ dataset_info:
19
+ features:
20
+ - name: text
21
+ dtype: string
22
+ - name: label
23
+ dtype: int64
24
+ - name: label_text
25
+ dtype: string
26
+ splits:
27
+ - name: train
28
+ num_bytes: 1877438.806
29
+ num_examples: 15956
30
+ - name: validation
31
+ num_bytes: 230846.56
32
+ num_examples: 1988
33
+ - name: test
34
+ num_bytes: 233116.68
35
+ num_examples: 1986
36
+ download_size: 1290414
37
+ dataset_size: 2341402.046
38
+ configs:
39
+ - config_name: default
40
+ data_files:
41
+ - split: train
42
+ path: data/train-*
43
+ - split: validation
44
+ path: data/validation-*
45
+ - split: test
46
+ path: data/test-*
47
+ ---
48
+ <!-- adapted from https://github.com/huggingface/huggingface_hub/blob/v0.30.2/src/huggingface_hub/templates/datasetcard_template.md -->
49
+
50
+ <div align="center" style="padding: 40px 20px; background-color: white; border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); max-width: 600px; margin: 0 auto;">
51
+ <h1 style="font-size: 3.5rem; color: #1a1a1a; margin: 0 0 20px 0; letter-spacing: 2px; font-weight: 700;">EmotionClassification</h1>
52
+ <div style="font-size: 1.5rem; color: #4a4a4a; margin-bottom: 5px; font-weight: 300;">An <a href="https://github.com/embeddings-benchmark/mteb" style="color: #2c5282; font-weight: 600; text-decoration: none;" onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'">MTEB</a> dataset</div>
53
+ <div style="font-size: 0.9rem; color: #2c5282; margin-top: 10px;">Massive Text Embedding Benchmark</div>
54
+ </div>
55
+
56
+ Emotion is a dataset of English Twitter messages with six basic emotions: anger, fear, joy, love, sadness, and surprise.
57
+
58
+ | | |
59
+ |---------------|---------------------------------------------|
60
+ | Task category | t2c |
61
+ | Domains | Social, Written |
62
+ | Reference | https://www.aclweb.org/anthology/D18-1404 |
63
+
64
+
65
+ ## How to evaluate on this task
66
+
67
+ You can evaluate an embedding model on this dataset using the following code:
68
+
69
+ ```python
70
+ import mteb
71
+
72
+ task = mteb.get_tasks(["EmotionClassification"])
73
+ evaluator = mteb.MTEB(task)
74
+
75
+ model = mteb.get_model(YOUR_MODEL)
76
+ evaluator.run(model)
77
+ ```
78
+
79
+ <!-- Datasets want link to arxiv in readme to autolink dataset with paper -->
80
+ To learn more about how to run models on `mteb` task check out the [GitHub repitory](https://github.com/embeddings-benchmark/mteb).
81
+
82
+ ## Citation
83
+
84
+ If you use this dataset, please cite the dataset as well as [mteb](https://github.com/embeddings-benchmark/mteb), as this dataset likely includes additional processing as a part of the [MMTEB Contribution](https://github.com/embeddings-benchmark/mteb/tree/main/docs/mmteb).
85
+
86
+ ```bibtex
87
+
88
+ @inproceedings{saravia-etal-2018-carer,
89
+ abstract = {Emotions are expressed in nuanced ways, which varies by collective or individual experiences, knowledge, and beliefs. Therefore, to understand emotion, as conveyed through text, a robust mechanism capable of capturing and modeling different linguistic nuances and phenomena is needed. We propose a semi-supervised, graph-based algorithm to produce rich structural descriptors which serve as the building blocks for constructing contextualized affect representations from text. The pattern-based representations are further enriched with word embeddings and evaluated through several emotion recognition tasks. Our experimental results demonstrate that the proposed method outperforms state-of-the-art techniques on emotion recognition tasks.},
90
+ address = {Brussels, Belgium},
91
+ author = {Saravia, Elvis and
92
+ Liu, Hsien-Chi Toby and
93
+ Huang, Yen-Hao and
94
+ Wu, Junlin and
95
+ Chen, Yi-Shin},
96
+ booktitle = {Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing},
97
+ doi = {10.18653/v1/D18-1404},
98
+ editor = {Riloff, Ellen and
99
+ Chiang, David and
100
+ Hockenmaier, Julia and
101
+ Tsujii, Jun{'}ichi},
102
+ month = oct # {-} # nov,
103
+ pages = {3687--3697},
104
+ publisher = {Association for Computational Linguistics},
105
+ title = {{CARER}: Contextualized Affect Representations for Emotion Recognition},
106
+ url = {https://aclanthology.org/D18-1404},
107
+ year = {2018},
108
+ }
109
+
110
+
111
+ @article{enevoldsen2025mmtebmassivemultilingualtext,
112
+ title={MMTEB: Massive Multilingual Text Embedding Benchmark},
113
+ author={Kenneth Enevoldsen and Isaac Chung and Imene Kerboua and Márton Kardos and Ashwin Mathur and David Stap and Jay Gala and Wissam Siblini and Dominik Krzemiński and Genta Indra Winata and Saba Sturua and Saiteja Utpala and Mathieu Ciancone and Marion Schaeffer and Gabriel Sequeira and Diganta Misra and Shreeya Dhakal and Jonathan Rystrøm and Roman Solomatin and Ömer Çağatan and Akash Kundu and Martin Bernstorff and Shitao Xiao and Akshita Sukhlecha and Bhavish Pahwa and Rafał Poświata and Kranthi Kiran GV and Shawon Ashraf and Daniel Auras and Björn Plüster and Jan Philipp Harries and Loïc Magne and Isabelle Mohr and Mariya Hendriksen and Dawei Zhu and Hippolyte Gisserot-Boukhlef and Tom Aarsen and Jan Kostkan and Konrad Wojtasik and Taemin Lee and Marek Šuppa and Crystina Zhang and Roberta Rocca and Mohammed Hamdy and Andrianos Michail and John Yang and Manuel Faysse and Aleksei Vatolin and Nandan Thakur and Manan Dey and Dipam Vasani and Pranjal Chitale and Simone Tedeschi and Nguyen Tai and Artem Snegirev and Michael Günther and Mengzhou Xia and Weijia Shi and Xing Han Lù and Jordan Clive and Gayatri Krishnakumar and Anna Maksimova and Silvan Wehrli and Maria Tikhonova and Henil Panchal and Aleksandr Abramov and Malte Ostendorff and Zheng Liu and Simon Clematide and Lester James Miranda and Alena Fenogenova and Guangyu Song and Ruqiya Bin Safi and Wen-Ding Li and Alessia Borghini and Federico Cassano and Hongjin Su and Jimmy Lin and Howard Yen and Lasse Hansen and Sara Hooker and Chenghao Xiao and Vaibhav Adlakha and Orion Weller and Siva Reddy and Niklas Muennighoff},
114
+ publisher = {arXiv},
115
+ journal={arXiv preprint arXiv:2502.13595},
116
+ year={2025},
117
+ url={https://arxiv.org/abs/2502.13595},
118
+ doi = {10.48550/arXiv.2502.13595},
119
+ }
120
+
121
+ @article{muennighoff2022mteb,
122
+ author = {Muennighoff, Niklas and Tazi, Nouamane and Magne, Lo{\"\i}c and Reimers, Nils},
123
+ title = {MTEB: Massive Text Embedding Benchmark},
124
+ publisher = {arXiv},
125
+ journal={arXiv preprint arXiv:2210.07316},
126
+ year = {2022}
127
+ url = {https://arxiv.org/abs/2210.07316},
128
+ doi = {10.48550/ARXIV.2210.07316},
129
+ }
130
+ ```
131
+
132
+ # Dataset Statistics
133
+ <details>
134
+ <summary> Dataset Statistics</summary>
135
+
136
+ The following code contains the descriptive statistics from the task. These can also be obtained using:
137
+
138
+ ```python
139
+ import mteb
140
+
141
+ task = mteb.get_task("EmotionClassification")
142
+
143
+ desc_stats = task.metadata.descriptive_stats
144
+ ```
145
+
146
+ ```json
147
+ {
148
+ "validation": {
149
+ "num_samples": 2000,
150
+ "number_of_characters": 190695,
151
+ "number_texts_intersect_with_train": 5,
152
+ "min_text_length": 11,
153
+ "average_text_length": 95.3475,
154
+ "max_text_length": 295,
155
+ "unique_text": 1998,
156
+ "unique_labels": 6,
157
+ "labels": {
158
+ "0": {
159
+ "count": 550
160
+ },
161
+ "2": {
162
+ "count": 178
163
+ },
164
+ "3": {
165
+ "count": 275
166
+ },
167
+ "1": {
168
+ "count": 704
169
+ },
170
+ "4": {
171
+ "count": 212
172
+ },
173
+ "5": {
174
+ "count": 81
175
+ }
176
+ }
177
+ },
178
+ "test": {
179
+ "num_samples": 2000,
180
+ "number_of_characters": 193173,
181
+ "number_texts_intersect_with_train": 11,
182
+ "min_text_length": 14,
183
+ "average_text_length": 96.5865,
184
+ "max_text_length": 296,
185
+ "unique_text": 2000,
186
+ "unique_labels": 6,
187
+ "labels": {
188
+ "0": {
189
+ "count": 581
190
+ },
191
+ "1": {
192
+ "count": 695
193
+ },
194
+ "4": {
195
+ "count": 224
196
+ },
197
+ "3": {
198
+ "count": 275
199
+ },
200
+ "2": {
201
+ "count": 159
202
+ },
203
+ "5": {
204
+ "count": 66
205
+ }
206
+ }
207
+ },
208
+ "train": {
209
+ "num_samples": 16000,
210
+ "number_of_characters": 1549533,
211
+ "number_texts_intersect_with_train": null,
212
+ "min_text_length": 7,
213
+ "average_text_length": 96.8458125,
214
+ "max_text_length": 300,
215
+ "unique_text": 15969,
216
+ "unique_labels": 6,
217
+ "labels": {
218
+ "0": {
219
+ "count": 4666
220
+ },
221
+ "3": {
222
+ "count": 2159
223
+ },
224
+ "2": {
225
+ "count": 1304
226
+ },
227
+ "5": {
228
+ "count": 572
229
+ },
230
+ "4": {
231
+ "count": 1937
232
+ },
233
+ "1": {
234
+ "count": 5362
235
+ }
236
+ }
237
+ }
238
+ }
239
+ ```
240
+
241
+ </details>
242
+
243
+ ---
244
+ *This dataset card was automatically generated using [MTEB](https://github.com/embeddings-benchmark/mteb)*
create_dataset.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from datasets import load_dataset
2
+
3
+
4
+ def main():
5
+ raw_dset = load_dataset("emotion")
6
+ labels = raw_dset["train"].features["label"]
7
+
8
+ for split, dset in raw_dset.items():
9
+ dset = dset.map(lambda x: {"label_text": labels.int2str(x["label"])}, num_proc=4)
10
+ dset.to_json(f"{split}.jsonl")
11
+
12
+
13
+ if __name__ == "__main__":
14
+ main()
data/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4e190046ada6f7281ad69918f55785bdde29c1f05f93dbb2e3e04089e2b1905
3
+ size 128983
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9835e9bd07ec6baf83b8ba29e5164799c9a3935cb97704aba97a9dd3868664e1
3
+ size 1033896
data/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef3c1614193f01e619edda9534c6a7b3169487194d0783e13849c1a0e05a72dc
3
+ size 127535
test.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
validation.jsonl ADDED
The diff for this file is too large to render. See raw diff