Datasets:
Tasks:
Text Classification
Modalities:
Text
Sub-tasks:
sentiment-classification
Languages:
English
ArXiv:
License:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,3 +1,172 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
pretty_name: Enhanced Emotion Classification Dataset
|
| 5 |
+
version: 2.0
|
| 6 |
+
tags:
|
| 7 |
+
- text-classification
|
| 8 |
+
- emotion
|
| 9 |
+
- sentiment-analysis
|
| 10 |
+
- ekman-emotions
|
| 11 |
+
- text
|
| 12 |
+
license: mit
|
| 13 |
+
task_categories:
|
| 14 |
+
- text-classification
|
| 15 |
+
task_ids:
|
| 16 |
+
- sentiment-classification
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# Enhanced Emotion Classification Dataset (v2.0)
|
| 20 |
+
|
| 21 |
+
## Dataset Description
|
| 22 |
+
|
| 23 |
+
This dataset is an enhanced version of the emotion classification dataset, including multiple sources of emotion data with Ekman emotion mapping. It contains a total of 240,426 samples across 7 emotion categories, with each sample labeled with its original data source.
|
| 24 |
+
|
| 25 |
+
### Dataset Structure
|
| 26 |
+
|
| 27 |
+
The dataset is split into three parts:
|
| 28 |
+
- **Train**: 186,619 samples (77.6%)
|
| 29 |
+
- **Validation**: 31,086 samples (12.9%)
|
| 30 |
+
- **Test**: 22,721 samples (9.4%)
|
| 31 |
+
|
| 32 |
+
### Emotion Categories
|
| 33 |
+
|
| 34 |
+
The dataset includes 7 Ekman basic emotions:
|
| 35 |
+
- neutral
|
| 36 |
+
- joy
|
| 37 |
+
- sadness
|
| 38 |
+
- anger
|
| 39 |
+
- fear
|
| 40 |
+
- surprise
|
| 41 |
+
- disgust
|
| 42 |
+
|
| 43 |
+
## Data Sources
|
| 44 |
+
|
| 45 |
+
The dataset combines data from 7 different sources:
|
| 46 |
+
|
| 47 |
+
1. **Movies_Reviews**
|
| 48 |
+
- Movie review emotion data
|
| 49 |
+
- Contains 7 emotion categories
|
| 50 |
+
|
| 51 |
+
2. **DailyDialog**
|
| 52 |
+
- Real dialog data with multi-turn conversations
|
| 53 |
+
- Contains 7 emotion categories
|
| 54 |
+
|
| 55 |
+
3. **GoEmotions**
|
| 56 |
+
- Reddit comment data with colloquial expressions
|
| 57 |
+
- Contains 7 emotion categories
|
| 58 |
+
|
| 59 |
+
4. **ISEAR**
|
| 60 |
+
- International emotion research data with high-quality text
|
| 61 |
+
- Contains 7 emotion categories
|
| 62 |
+
|
| 63 |
+
5. **MELD**
|
| 64 |
+
- Multimodal emotion dialog data from the TV show "Friends"
|
| 65 |
+
- Contains 7 emotion categories
|
| 66 |
+
|
| 67 |
+
6. **mteb_emotion**
|
| 68 |
+
- Emotion analysis dataset with various emotion expressions
|
| 69 |
+
- Contains 7 emotion categories
|
| 70 |
+
|
| 71 |
+
7. **Tweet Emotions**
|
| 72 |
+
- Twitter tweet data including @mentions
|
| 73 |
+
- Contains 7 emotion categories
|
| 74 |
+
|
| 75 |
+
## Data Format
|
| 76 |
+
|
| 77 |
+
Each CSV file contains the following columns:
|
| 78 |
+
- `text`: Text content
|
| 79 |
+
- `label_text`: Emotion label (one of the 7 emotion categories)
|
| 80 |
+
- `source`: Data source identifier (e.g., dailydialog, goemotions, tweetemotions, etc.)
|
| 81 |
+
|
| 82 |
+
## File Structure
|
| 83 |
+
|
| 84 |
+
```
|
| 85 |
+
dataset_huggingface_enhance/
|
| 86 |
+
├── train.csv # Merged training set (186,619 samples)
|
| 87 |
+
├── val.csv # Merged validation set (31,086 samples)
|
| 88 |
+
├── test.csv # Merged test set (22,721 samples)
|
| 89 |
+
├── README.md # Dataset documentation
|
| 90 |
+
├── dataset_infos.json # Hugging Face dataset configuration
|
| 91 |
+
├── info.md # Detailed dataset statistics
|
| 92 |
+
├── label_list.txt # List of emotion labels
|
| 93 |
+
└── stats.py # Dataset statistics script
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
## Usage
|
| 97 |
+
|
| 98 |
+
To use this dataset with Hugging Face Datasets library:
|
| 99 |
+
|
| 100 |
+
```python
|
| 101 |
+
from datasets import load_dataset
|
| 102 |
+
|
| 103 |
+
# Load the dataset
|
| 104 |
+
dataset = load_dataset("jiangchengchengNLP/Enhanced_Emotion_Classification_Dataset")
|
| 105 |
+
|
| 106 |
+
# Access specific splits
|
| 107 |
+
train_dataset = dataset["train"]
|
| 108 |
+
val_dataset = dataset["validation"]
|
| 109 |
+
test_dataset = dataset["test"]
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
## Emotion Distribution
|
| 113 |
+
|
| 114 |
+
### Training Set (186,619 samples)
|
| 115 |
+
- neutral: 51.11%
|
| 116 |
+
- joy: 21.64%
|
| 117 |
+
- sadness: 7.98%
|
| 118 |
+
- anger: 5.97%
|
| 119 |
+
- fear: 5.90%
|
| 120 |
+
- surprise: 5.11%
|
| 121 |
+
- disgust: 2.29%
|
| 122 |
+
|
| 123 |
+
### Validation Set (31,086 samples)
|
| 124 |
+
- neutral: 40.96%
|
| 125 |
+
- joy: 24.15%
|
| 126 |
+
- sadness: 9.38%
|
| 127 |
+
- fear: 8.06%
|
| 128 |
+
- anger: 7.49%
|
| 129 |
+
- surprise: 7.06%
|
| 130 |
+
- disgust: 2.89%
|
| 131 |
+
|
| 132 |
+
### Test Set (22,721 samples)
|
| 133 |
+
- neutral: 45.11%
|
| 134 |
+
- joy: 22.88%
|
| 135 |
+
- sadness: 9.13%
|
| 136 |
+
- anger: 7.61%
|
| 137 |
+
- fear: 6.67%
|
| 138 |
+
- surprise: 5.93%
|
| 139 |
+
- disgust: 2.67%
|
| 140 |
+
|
| 141 |
+
## Notes
|
| 142 |
+
|
| 143 |
+
- The dataset has class imbalance, with neutral being the most common category (~40-51%) and disgust being the least common (~2-3%).
|
| 144 |
+
- Each sample includes a `source` field indicating its original data source, which allows for source-specific analysis.
|
| 145 |
+
- Different data sources have different text styles, which may affect model performance.
|
| 146 |
+
- The dataset uses Ekman emotion mapping, which maps various emotion labels to the 7 basic emotions.
|
| 147 |
+
|
| 148 |
+
## License
|
| 149 |
+
|
| 150 |
+
The dataset is released under the MIT License.
|
| 151 |
+
|
| 152 |
+
## Citation
|
| 153 |
+
|
| 154 |
+
If you use this dataset in your research, please cite the original datasets:
|
| 155 |
+
|
| 156 |
+
- DailyDialog: https://aclanthology.org/I17-1099/
|
| 157 |
+
- GoEmotions: https://arxiv.org/abs/2005.00547
|
| 158 |
+
- Tweet Emotions: https://www.aclweb.org/anthology/W18-6212/
|
| 159 |
+
- MELD: https://arxiv.org/abs/1810.02508
|
| 160 |
+
- ISEAR: https://link.springer.com/article/10.1007/BF02112196
|
| 161 |
+
|
| 162 |
+
## Version History
|
| 163 |
+
|
| 164 |
+
- **v2.0** (2026-01-07): Updated dataset with merged sources and source field
|
| 165 |
+
- Total samples: 240,426
|
| 166 |
+
- Added `source` field to all samples
|
| 167 |
+
- Updated emotion distribution statistics
|
| 168 |
+
- Improved data quality and consistency
|
| 169 |
+
- Filtered all NaN values from the dataset
|
| 170 |
+
|
| 171 |
+
- **v1.0**: Initial release
|
| 172 |
+
|