Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
json
Sub-tasks:
multi-class-classification
Languages:
English
Size:
10K - 100K
Tags:
emotion-classification
License:
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,274 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
annotations_creators:
|
3 |
+
- machine-generated
|
4 |
+
language_creators:
|
5 |
+
- machine-generated
|
6 |
+
language:
|
7 |
+
- en
|
8 |
+
license:
|
9 |
+
- other
|
10 |
+
multilinguality:
|
11 |
+
- monolingual
|
12 |
+
size_categories:
|
13 |
+
- 10K<n<100K
|
14 |
+
source_datasets:
|
15 |
+
- original
|
16 |
+
task_categories:
|
17 |
+
- text-classification
|
18 |
+
task_ids:
|
19 |
+
- multi-class-classification
|
20 |
+
paperswithcode_id: emotion
|
21 |
+
pretty_name: Emotion
|
22 |
+
tags:
|
23 |
+
- emotion-classification
|
24 |
+
dataset_info:
|
25 |
+
- config_name: split
|
26 |
+
features:
|
27 |
+
- name: text
|
28 |
+
dtype: string
|
29 |
+
- name: label
|
30 |
+
dtype:
|
31 |
+
class_label:
|
32 |
+
names:
|
33 |
+
'0': sadness
|
34 |
+
'1': joy
|
35 |
+
'2': love
|
36 |
+
'3': anger
|
37 |
+
'4': fear
|
38 |
+
'5': surprise
|
39 |
+
splits:
|
40 |
+
- name: train
|
41 |
+
num_bytes: 1968209
|
42 |
+
num_examples: 16000
|
43 |
+
- name: validation
|
44 |
+
num_bytes: 247888
|
45 |
+
num_examples: 2000
|
46 |
+
- name: test
|
47 |
+
num_bytes: 244379
|
48 |
+
num_examples: 2000
|
49 |
+
download_size: 740883
|
50 |
+
dataset_size: 2173481
|
51 |
+
- config_name: unsplit
|
52 |
+
features:
|
53 |
+
- name: text
|
54 |
+
dtype: string
|
55 |
+
- name: label
|
56 |
+
dtype:
|
57 |
+
class_label:
|
58 |
+
names:
|
59 |
+
'0': sadness
|
60 |
+
'1': joy
|
61 |
+
'2': love
|
62 |
+
'3': anger
|
63 |
+
'4': fear
|
64 |
+
'5': surprise
|
65 |
+
splits:
|
66 |
+
- name: train
|
67 |
+
num_bytes: 10792185
|
68 |
+
num_examples: 89754
|
69 |
+
download_size: 10792185
|
70 |
+
dataset_size: 10792185
|
71 |
+
train-eval-index:
|
72 |
+
- config: default
|
73 |
+
task: text-classification
|
74 |
+
task_id: multi_class_classification
|
75 |
+
splits:
|
76 |
+
train_split: train
|
77 |
+
eval_split: test
|
78 |
+
col_mapping:
|
79 |
+
text: text
|
80 |
+
label: target
|
81 |
+
metrics:
|
82 |
+
- type: accuracy
|
83 |
+
name: Accuracy
|
84 |
+
- type: f1
|
85 |
+
name: F1 macro
|
86 |
+
args:
|
87 |
+
average: macro
|
88 |
+
- type: f1
|
89 |
+
name: F1 micro
|
90 |
+
args:
|
91 |
+
average: micro
|
92 |
+
- type: f1
|
93 |
+
name: F1 weighted
|
94 |
+
args:
|
95 |
+
average: weighted
|
96 |
+
- type: precision
|
97 |
+
name: Precision macro
|
98 |
+
args:
|
99 |
+
average: macro
|
100 |
+
- type: precision
|
101 |
+
name: Precision micro
|
102 |
+
args:
|
103 |
+
average: micro
|
104 |
+
- type: precision
|
105 |
+
name: Precision weighted
|
106 |
+
args:
|
107 |
+
average: weighted
|
108 |
+
- type: recall
|
109 |
+
name: Recall macro
|
110 |
+
args:
|
111 |
+
average: macro
|
112 |
+
- type: recall
|
113 |
+
name: Recall micro
|
114 |
+
args:
|
115 |
+
average: micro
|
116 |
+
- type: recall
|
117 |
+
name: Recall weighted
|
118 |
+
args:
|
119 |
+
average: weighted
|
120 |
+
---
|
121 |
+
|
122 |
+
# Dataset Card for "emotion"
|
123 |
+
|
124 |
+
## Table of Contents
|
125 |
+
- [Dataset Description](#dataset-description)
|
126 |
+
- [Dataset Summary](#dataset-summary)
|
127 |
+
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
128 |
+
- [Languages](#languages)
|
129 |
+
- [Dataset Structure](#dataset-structure)
|
130 |
+
- [Data Instances](#data-instances)
|
131 |
+
- [Data Fields](#data-fields)
|
132 |
+
- [Data Splits](#data-splits)
|
133 |
+
- [Dataset Creation](#dataset-creation)
|
134 |
+
- [Curation Rationale](#curation-rationale)
|
135 |
+
- [Source Data](#source-data)
|
136 |
+
- [Annotations](#annotations)
|
137 |
+
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
138 |
+
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
139 |
+
- [Social Impact of Dataset](#social-impact-of-dataset)
|
140 |
+
- [Discussion of Biases](#discussion-of-biases)
|
141 |
+
- [Other Known Limitations](#other-known-limitations)
|
142 |
+
- [Additional Information](#additional-information)
|
143 |
+
- [Dataset Curators](#dataset-curators)
|
144 |
+
- [Licensing Information](#licensing-information)
|
145 |
+
- [Citation Information](#citation-information)
|
146 |
+
- [Contributions](#contributions)
|
147 |
+
|
148 |
+
## Dataset Description
|
149 |
+
|
150 |
+
- **Homepage:** [https://github.com/AdamCodd/emotion-dataset](https://github.com/AdamCodd/emotion-dataset)
|
151 |
+
- **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
152 |
+
- **Paper:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
153 |
+
- **Point of Contact:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
154 |
+
- **Size of downloaded dataset files:** 10.54 MB
|
155 |
+
|
156 |
+
### Dataset Summary
|
157 |
+
|
158 |
+
Emotion is a dataset of English Twitter messages with six basic emotions: anger, fear, joy, love, sadness, and surprise. For more detailed information please refer to the paper.
|
159 |
+
|
160 |
+
### Supported Tasks and Leaderboards
|
161 |
+
|
162 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
163 |
+
|
164 |
+
### Languages
|
165 |
+
|
166 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
167 |
+
|
168 |
+
## Dataset Structure
|
169 |
+
|
170 |
+
### Data Instances
|
171 |
+
|
172 |
+
An example looks as follows.
|
173 |
+
```
|
174 |
+
{
|
175 |
+
"text": "im feeling quite sad and sorry for myself but ill snap out of it soon",
|
176 |
+
"label": 0
|
177 |
+
}
|
178 |
+
```
|
179 |
+
|
180 |
+
### Data Fields
|
181 |
+
|
182 |
+
The data fields are:
|
183 |
+
- `text`: a `string` feature.
|
184 |
+
- `label`: a classification label, with possible values including `sadness` (0), `joy` (1), `love` (2), `anger` (3), `fear` (4), `surprise` (5).
|
185 |
+
|
186 |
+
### Data Splits
|
187 |
+
|
188 |
+
The dataset has 2 configurations:
|
189 |
+
- split: with a total of 20_000 examples split into train, validation and split
|
190 |
+
- unsplit: with a total of 89_754 examples in a single train split
|
191 |
+
|
192 |
+
| name | train | validation | test |
|
193 |
+
|---------|-------:|-----------:|-----:|
|
194 |
+
| split | 16000 | 2000 | 2000 |
|
195 |
+
| unsplit | 89754 | n/a | n/a |
|
196 |
+
|
197 |
+
## Dataset Creation
|
198 |
+
|
199 |
+
### Curation Rationale
|
200 |
+
|
201 |
+
This dataset is designed for training machine learning models to perform emotion analysis. It contains text samples from Twitter labeled with six different emotions: sadness, joy, love, anger, fear, and surprise. The dataset is balanced, meaning that it has an equal number of samples for each label.
|
202 |
+
|
203 |
+
This dataset is originally sourced from [dair-ai's emotion dataset](https://huggingface.co/datasets/dair-ai/emotion), but the initial dataset was unbalanced and had some duplicate samples. Thus, this dataset has been deduplicated and balanced to ensure an equal number of samples for each emotion label.
|
204 |
+
|
205 |
+
### Source Data
|
206 |
+
|
207 |
+
#### Initial Data Collection and Normalization
|
208 |
+
|
209 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
210 |
+
|
211 |
+
#### Who are the source language producers?
|
212 |
+
|
213 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
214 |
+
|
215 |
+
### Annotations
|
216 |
+
|
217 |
+
#### Annotation process
|
218 |
+
|
219 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
220 |
+
|
221 |
+
#### Who are the annotators?
|
222 |
+
|
223 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
224 |
+
|
225 |
+
### Personal and Sensitive Information
|
226 |
+
|
227 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
228 |
+
|
229 |
+
## Considerations for Using the Data
|
230 |
+
|
231 |
+
### Social Impact of Dataset
|
232 |
+
|
233 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
234 |
+
|
235 |
+
### Discussion of Biases
|
236 |
+
|
237 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
238 |
+
|
239 |
+
### Other Known Limitations
|
240 |
+
|
241 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
242 |
+
|
243 |
+
## Additional Information
|
244 |
+
|
245 |
+
### Dataset Curators
|
246 |
+
|
247 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
248 |
+
|
249 |
+
### Licensing Information
|
250 |
+
|
251 |
+
The dataset should be used for educational and research purposes only.
|
252 |
+
|
253 |
+
### Citation Information
|
254 |
+
|
255 |
+
If you use this dataset, please cite:
|
256 |
+
```
|
257 |
+
@inproceedings{saravia-etal-2018-carer,
|
258 |
+
title = "{CARER}: Contextualized Affect Representations for Emotion Recognition",
|
259 |
+
author = "Saravia, Elvis and
|
260 |
+
Liu, Hsien-Chi Toby and
|
261 |
+
Huang, Yen-Hao and
|
262 |
+
Wu, Junlin and
|
263 |
+
Chen, Yi-Shin",
|
264 |
+
booktitle = "Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing",
|
265 |
+
month = oct # "-" # nov,
|
266 |
+
year = "2018",
|
267 |
+
address = "Brussels, Belgium",
|
268 |
+
publisher = "Association for Computational Linguistics",
|
269 |
+
url = "https://www.aclweb.org/anthology/D18-1404",
|
270 |
+
doi = "10.18653/v1/D18-1404",
|
271 |
+
pages = "3687--3697",
|
272 |
+
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.",
|
273 |
+
}
|
274 |
+
```
|