Datasets:
Tasks:
Text Classification
Modalities:
Text
Sub-tasks:
sentiment-classification
Languages:
English
ArXiv:
License:
Commit
·
d8d42bd
verified
·
0
Parent(s):
Duplicate from jiangchengchengNLP/Enhanced_Emotion_Classification_Dataset
Browse filesCo-authored-by: BIGGOD <jiangchengchengNLP@users.noreply.huggingface.co>
- .gitattributes +60 -0
- README.md +172 -0
- dataset_infos.json +60 -0
- info.md +192 -0
- label_list.txt +7 -0
- test/test.csv +0 -0
- train/train.csv +3 -0
- val/val.csv +0 -0
.gitattributes
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
# Audio files - uncompressed
|
| 39 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
# Audio files - compressed
|
| 43 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
# Image files - uncompressed
|
| 49 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
# Image files - compressed
|
| 54 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
# Video files - compressed
|
| 58 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
train/train.csv filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
|
dataset_infos.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"default": {
|
| 3 |
+
"description": "Enhanced emotion classification dataset with multiple sources and Ekman emotion mapping",
|
| 4 |
+
"citation": "",
|
| 5 |
+
"homepage": "",
|
| 6 |
+
"license": "MIT",
|
| 7 |
+
"features": {
|
| 8 |
+
"text": {
|
| 9 |
+
"dtype": "string",
|
| 10 |
+
"id": null,
|
| 11 |
+
"_type": "Value"
|
| 12 |
+
},
|
| 13 |
+
"label_text": {
|
| 14 |
+
"dtype": "string",
|
| 15 |
+
"id": null,
|
| 16 |
+
"_type": "Value"
|
| 17 |
+
},
|
| 18 |
+
"source": {
|
| 19 |
+
"dtype": "string",
|
| 20 |
+
"id": null,
|
| 21 |
+
"_type": "Value"
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
"post_processed": null,
|
| 25 |
+
"supervised_keys": null,
|
| 26 |
+
"task_templates": [
|
| 27 |
+
{
|
| 28 |
+
"task": "text-classification",
|
| 29 |
+
"text_column": "text",
|
| 30 |
+
"label_column": "label_text"
|
| 31 |
+
}
|
| 32 |
+
],
|
| 33 |
+
"builder_name": "csv",
|
| 34 |
+
"config_name": "default",
|
| 35 |
+
"version": {
|
| 36 |
+
"version_str": "2.0.0",
|
| 37 |
+
"description": "Updated dataset with merged sources and source field"
|
| 38 |
+
},
|
| 39 |
+
"splits": {
|
| 40 |
+
"train": {
|
| 41 |
+
"name": "train",
|
| 42 |
+
"num_bytes": 0,
|
| 43 |
+
"num_examples": 186639,
|
| 44 |
+
"dataset_name": "enhanced_emotion_classification"
|
| 45 |
+
},
|
| 46 |
+
"validation": {
|
| 47 |
+
"name": "validation",
|
| 48 |
+
"num_bytes": 0,
|
| 49 |
+
"num_examples": 31092,
|
| 50 |
+
"dataset_name": "enhanced_emotion_classification"
|
| 51 |
+
},
|
| 52 |
+
"test": {
|
| 53 |
+
"name": "test",
|
| 54 |
+
"num_bytes": 0,
|
| 55 |
+
"num_examples": 22722,
|
| 56 |
+
"dataset_name": "enhanced_emotion_classification"
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
}
|
info.md
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 数据集统计信息
|
| 2 |
+
|
| 3 |
+
## 概览
|
| 4 |
+
|
| 5 |
+
- **总样本数**: 240,426 条
|
| 6 |
+
- **训练集**: 186,619 (77.62%)
|
| 7 |
+
- **验证集**: 31,086 (12.93%)
|
| 8 |
+
- **测试集**: 22,721 (9.45%)
|
| 9 |
+
- **情感类别**: 7种(neutral + 6种Ekman基本情感)
|
| 10 |
+
- **数据源**: 7个(Movies_Reviews, dailydialog, goemotions, isear, meld, mteb_emotion, tweetemotions)
|
| 11 |
+
|
| 12 |
+
## 数据集列表
|
| 13 |
+
|
| 14 |
+
### 合并数据集(按子集)
|
| 15 |
+
|
| 16 |
+
| 子集 | 样本数 | 占比 | 文件名 |
|
| 17 |
+
|------|--------|------|--------|
|
| 18 |
+
| 训练集 | 186,619 | 77.62% | train.csv |
|
| 19 |
+
| 验证集 | 31,086 | 12.93% | val.csv |
|
| 20 |
+
| 测试集 | 22,721 | 9.45% | test.csv |
|
| 21 |
+
| **总计** | **240,426** | **100%** | |
|
| 22 |
+
|
| 23 |
+
## 情感分布
|
| 24 |
+
|
| 25 |
+
### 训练集情感分布 (186,619条)
|
| 26 |
+
|
| 27 |
+
| 情感 | 样本数 | 占比 |
|
| 28 |
+
|------|--------|------|
|
| 29 |
+
| neutral | 95,392 | 51.12% |
|
| 30 |
+
| joy | 40,380 | 21.64% |
|
| 31 |
+
| sadness | 14,886 | 7.98% |
|
| 32 |
+
| anger | 11,142 | 5.97% |
|
| 33 |
+
| fear | 11,011 | 5.90% |
|
| 34 |
+
| surprise | 9,528 | 5.11% |
|
| 35 |
+
| disgust | 4,280 | 2.29% |
|
| 36 |
+
|
| 37 |
+
### 验证集情感分布 (31,086条)
|
| 38 |
+
|
| 39 |
+
| 情感 | 样本数 | 占比 |
|
| 40 |
+
|------|--------|------|
|
| 41 |
+
| neutral | 12,734 | 40.96% |
|
| 42 |
+
| joy | 7,509 | 24.15% |
|
| 43 |
+
| sadness | 2,915 | 9.38% |
|
| 44 |
+
| fear | 2,506 | 8.06% |
|
| 45 |
+
| anger | 2,329 | 7.49% |
|
| 46 |
+
| surprise | 2,196 | 7.06% |
|
| 47 |
+
| disgust | 897 | 2.89% |
|
| 48 |
+
|
| 49 |
+
### 测试集情感分布 (22,721条)
|
| 50 |
+
|
| 51 |
+
| 情感 | 样本数 | 占比 |
|
| 52 |
+
|------|--------|------|
|
| 53 |
+
| neutral | 10,249 | 45.11% |
|
| 54 |
+
| joy | 5,198 | 22.88% |
|
| 55 |
+
| sadness | 2,074 | 9.13% |
|
| 56 |
+
| anger | 1,729 | 7.61% |
|
| 57 |
+
| fear | 1,516 | 6.67% |
|
| 58 |
+
| surprise | 1,348 | 5.93% |
|
| 59 |
+
| disgust | 607 | 2.67% |
|
| 60 |
+
|
| 61 |
+
### 整体情感分布 (240,426条)
|
| 62 |
+
|
| 63 |
+
| 情感 | 样本数 | 占比 |
|
| 64 |
+
|------|--------|------|
|
| 65 |
+
| neutral | 118,375 | 49.24% |
|
| 66 |
+
| joy | 53,087 | 22.08% |
|
| 67 |
+
| sadness | 19,875 | 8.27% |
|
| 68 |
+
| anger | 15,200 | 6.32% |
|
| 69 |
+
| fear | 15,033 | 6.25% |
|
| 70 |
+
| surprise | 13,072 | 5.44% |
|
| 71 |
+
| disgust | 5,784 | 2.41% |
|
| 72 |
+
|
| 73 |
+
## 数据源分布
|
| 74 |
+
|
| 75 |
+
### 训练集数据源分布
|
| 76 |
+
|
| 77 |
+
| 数据源 | 样本数 | 占比 |
|
| 78 |
+
|--------|--------|------|
|
| 79 |
+
| dailydialog | 87,170 | 46.71% |
|
| 80 |
+
| goemotions | 41,251 | 22.10% |
|
| 81 |
+
| tweetemotions | 21,763 | 11.66% |
|
| 82 |
+
| mteb_emotion | 15,956 | 8.55% |
|
| 83 |
+
| meld | 9,989 | 5.35% |
|
| 84 |
+
| Movies_Reviews | 6,725 | 3.60% |
|
| 85 |
+
| isear | 3,765 | 2.02% |
|
| 86 |
+
|
| 87 |
+
### 验证集数据源分布
|
| 88 |
+
|
| 89 |
+
| 数据源 | 样本数 | 占比 |
|
| 90 |
+
|--------|--------|------|
|
| 91 |
+
| goemotions | 11,786 | 37.91% |
|
| 92 |
+
| dailydialog | 8,069 | 25.95% |
|
| 93 |
+
| tweetemotions | 6,218 | 20.00% |
|
| 94 |
+
| mteb_emotion | 1,988 | 6.39% |
|
| 95 |
+
| meld | 1,109 | 3.57% |
|
| 96 |
+
| isear | 1,076 | 3.46% |
|
| 97 |
+
| Movies_Reviews | 840 | 2.70% |
|
| 98 |
+
|
| 99 |
+
### 测试集数据源分布
|
| 100 |
+
|
| 101 |
+
| 数据源 | 样本数 | 占比 |
|
| 102 |
+
|--------|--------|------|
|
| 103 |
+
| dailydialog | 7,740 | 34.06% |
|
| 104 |
+
| goemotions | 5,893 | 25.94% |
|
| 105 |
+
| tweetemotions | 3,110 | 13.69% |
|
| 106 |
+
| meld | 2,610 | 11.49% |
|
| 107 |
+
| mteb_emotion | 1,986 | 8.74% |
|
| 108 |
+
| Movies_Reviews | 842 | 3.71% |
|
| 109 |
+
| isear | 540 | 2.38% |
|
| 110 |
+
|
| 111 |
+
## 数据源信息
|
| 112 |
+
|
| 113 |
+
### Movies_Reviews
|
| 114 |
+
- **特点**: 电影评论情感数据
|
| 115 |
+
- **覆盖**: 包含7种情感类别
|
| 116 |
+
|
| 117 |
+
### DailyDialog
|
| 118 |
+
- **特点**: 真实对话数据,包含多轮对话
|
| 119 |
+
- **覆盖**: 包含7种情感类别
|
| 120 |
+
|
| 121 |
+
### GoEmotions
|
| 122 |
+
- **特点**: Reddit评论数据,口语化表达
|
| 123 |
+
- **覆盖**: 包含7种情感类别
|
| 124 |
+
|
| 125 |
+
### ISEAR
|
| 126 |
+
- **特点**: 国际情感研究数据,高质量文本
|
| 127 |
+
- **覆盖**: 包含7种情感类别
|
| 128 |
+
|
| 129 |
+
### MELD
|
| 130 |
+
- **特点**: 多模态情感对话数据,来自电视剧《老友记》
|
| 131 |
+
- **覆盖**: 包含7种情感类别
|
| 132 |
+
|
| 133 |
+
### mteb_emotion
|
| 134 |
+
- **特点**: 情感分析数据集,包含多种情感表达
|
| 135 |
+
- **覆盖**: 包含7种情感类别
|
| 136 |
+
|
| 137 |
+
### Tweet Emotions
|
| 138 |
+
- **特点**: Twitter推文数据,包含@mentions
|
| 139 |
+
- **覆盖**: 包含7种情感类别
|
| 140 |
+
|
| 141 |
+
## 数据质量说明
|
| 142 |
+
|
| 143 |
+
1. **类别不平衡**: neutral占主导(约40-51%),disgust样本最少(约2-3%)
|
| 144 |
+
2. **多源数据融合**: 7个数据源的文本已合并,每个样本包含`source`字段标识来源
|
| 145 |
+
3. **情感类别**: 统一使用7种Ekman情感类别,确保标签一致性
|
| 146 |
+
4. **数据分割**: 按7:2:1比例分割为训练集、验证集和测试集
|
| 147 |
+
5. **缺失值**: 已过滤所有缺失值,训练集、验证集和测试集均无缺失值
|
| 148 |
+
|
| 149 |
+
## 情感类别定义
|
| 150 |
+
|
| 151 |
+
- **neutral**: 中性,无情感倾向
|
| 152 |
+
- **joy**: 快乐,愉悦
|
| 153 |
+
- **sadness**: 悲伤,难过
|
| 154 |
+
- **anger**: 愤怒,生气
|
| 155 |
+
- **fear**: 恐惧,害怕
|
| 156 |
+
- **surprise**: 惊讶,意外
|
| 157 |
+
- **disgust**: 厌恶,反感
|
| 158 |
+
|
| 159 |
+
## 使用建议
|
| 160 |
+
|
| 161 |
+
1. **类别不平衡处理**: 建议使用类别权重或过采样/欠采样技术处理类别不平衡问题
|
| 162 |
+
2. **数据增强**: 对于样本较少的类别(如disgust),可以考虑数据增强技术
|
| 163 |
+
3. **多源数据融合**: 不同数据源的文本风格差异较大,建议在训练时注意数据分布
|
| 164 |
+
4. **评估指标**: 由于类别不平衡,建议使用F1-score、precision、recall等指标,而非仅使用准确率
|
| 165 |
+
5. **缺失值处理**: 训练前建议处理数据中的缺失值
|
| 166 |
+
|
| 167 |
+
## 文件结构
|
| 168 |
+
|
| 169 |
+
```
|
| 170 |
+
dataset_huggingface_enhance/
|
| 171 |
+
├── train.csv # 合并后的训练集(186,619条)
|
| 172 |
+
├── val.csv # 合并后的验证集(31,086条)
|
| 173 |
+
├── test.csv # 合并后的测试集(22,721条)
|
| 174 |
+
├── label_list.txt # 情感标签列表
|
| 175 |
+
├── info.md # 数据集统计信息
|
| 176 |
+
├── README.md # 数据集说明文档
|
| 177 |
+
├── stats.py # 数据集统计脚本
|
| 178 |
+
└── dataset_infos.json # Hugging Face数据集配置
|
| 179 |
+
```
|
| 180 |
+
|
| 181 |
+
## 数据格式
|
| 182 |
+
|
| 183 |
+
所有CSV文件包含以下列:
|
| 184 |
+
- `text`: 文本内容
|
| 185 |
+
- `label_text`: 情感标签(neutral/joy/sadness/anger/fear/surprise/disgust)
|
| 186 |
+
- `source`: 数据来源(如goemotions、dailydialog等)
|
| 187 |
+
|
| 188 |
+
---
|
| 189 |
+
|
| 190 |
+
*生成时间: 2026-01-07*
|
| 191 |
+
*数据版本: v2*
|
| 192 |
+
*数据源: 7个Ekman情感数据集合并*
|
label_list.txt
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- anger # 愤怒
|
| 2 |
+
- disgust # 厌恶
|
| 3 |
+
- joy # 快乐
|
| 4 |
+
- sadness # 悲伤
|
| 5 |
+
- fear # 恐惧
|
| 6 |
+
- surprise # 惊讶
|
| 7 |
+
- neutral # 中性
|
test/test.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
train/train.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04e954c8a6d5964d7d24833b5ab8d92bea3f3b9643adc317b328e49fdb15431a
|
| 3 |
+
size 24635400
|
val/val.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|