tanquangduong
commited on
Commit
•
96c4f71
1
Parent(s):
ee3e4d7
Update README.md
Browse files
README.md
CHANGED
@@ -33,3 +33,38 @@ configs:
|
|
33 |
- split: test
|
34 |
path: data/test-*
|
35 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
- split: test
|
34 |
path: data/test-*
|
35 |
---
|
36 |
+
|
37 |
+
## Emotion Dataset
|
38 |
+
This is the dataset for a sentiment analysis task. This dataset is cloned from [dair-ai/emotion](https://huggingface.co/datasets/dair-ai/emotion) with the following adaptations.
|
39 |
+
|
40 |
+
The original train dataset does not have a good balance of label distribution.
|
41 |
+
|
42 |
+
```
|
43 |
+
label_name
|
44 |
+
surprise 719
|
45 |
+
love 1641
|
46 |
+
fear 2373
|
47 |
+
anger 2709
|
48 |
+
sadness 5797
|
49 |
+
joy 6761
|
50 |
+
```
|
51 |
+
|
52 |
+
|
53 |
+
I created a balanced subset from the original dataset with the following processing steps:
|
54 |
+
|
55 |
+
- Selected the four highest number labels: fear (2373), anger (2709), sadness (5797), joy (6761)
|
56 |
+
- Down-sampled the majority classes to match the minority class and reordered the label ids
|
57 |
+
```
|
58 |
+
label label_name
|
59 |
+
0 sadness 2373
|
60 |
+
1 joy 2373
|
61 |
+
2 anger 2373
|
62 |
+
3 fear 2373
|
63 |
+
```
|
64 |
+
- Split the downsampled dataframe into train, validation, and test subsets with the ratio 70:15:15. Finally, we obtained:
|
65 |
+
```
|
66 |
+
train_ds: 6644
|
67 |
+
validation_ds: 1424
|
68 |
+
test_ds: 1424
|
69 |
+
```
|
70 |
+
- Added ClassLabel to all Dataset objects for the 'train', 'validation', and 'test' datasets
|