Update README.md
Browse files
README.md
CHANGED
|
@@ -1,32 +1,85 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
dataset_info:
|
| 4 |
-
features:
|
| 5 |
-
- name: input_ids
|
| 6 |
-
sequence: int32
|
| 7 |
-
- name: attention_mask
|
| 8 |
-
sequence: int8
|
| 9 |
-
- name: labels
|
| 10 |
-
sequence: int64
|
| 11 |
-
splits:
|
| 12 |
-
- name: train
|
| 13 |
-
num_bytes: 121374360
|
| 14 |
-
num_examples: 43410
|
| 15 |
-
- name: validation
|
| 16 |
-
num_bytes: 15171096
|
| 17 |
-
num_examples: 5426
|
| 18 |
-
- name: test
|
| 19 |
-
num_bytes: 15173892
|
| 20 |
-
num_examples: 5427
|
| 21 |
-
download_size: 2670120
|
| 22 |
-
dataset_size: 151719348
|
| 23 |
-
configs:
|
| 24 |
-
- config_name: default
|
| 25 |
-
data_files:
|
| 26 |
-
- split: train
|
| 27 |
-
path: data/train-*
|
| 28 |
-
- split: validation
|
| 29 |
-
path: data/validation-*
|
| 30 |
-
- split: test
|
| 31 |
-
path: data/test-*
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
dataset_info:
|
| 4 |
+
features:
|
| 5 |
+
- name: input_ids
|
| 6 |
+
sequence: int32
|
| 7 |
+
- name: attention_mask
|
| 8 |
+
sequence: int8
|
| 9 |
+
- name: labels
|
| 10 |
+
sequence: int64
|
| 11 |
+
splits:
|
| 12 |
+
- name: train
|
| 13 |
+
num_bytes: 121374360
|
| 14 |
+
num_examples: 43410
|
| 15 |
+
- name: validation
|
| 16 |
+
num_bytes: 15171096
|
| 17 |
+
num_examples: 5426
|
| 18 |
+
- name: test
|
| 19 |
+
num_bytes: 15173892
|
| 20 |
+
num_examples: 5427
|
| 21 |
+
download_size: 2670120
|
| 22 |
+
dataset_size: 151719348
|
| 23 |
+
configs:
|
| 24 |
+
- config_name: default
|
| 25 |
+
data_files:
|
| 26 |
+
- split: train
|
| 27 |
+
path: data/train-*
|
| 28 |
+
- split: validation
|
| 29 |
+
path: data/validation-*
|
| 30 |
+
- split: test
|
| 31 |
+
path: data/test-*
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
# π GoEmotions Dataset (Processed for Multi-Label Classification)
|
| 35 |
+
|
| 36 |
+
## π Dataset Overview
|
| 37 |
+
This dataset is a **preprocessed version of the GoEmotions dataset**, containing **multi-label emotion annotations** for text inputs. It consists of **train, validation, and test splits**.
|
| 38 |
+
|
| 39 |
+
## π’ Dataset Statistics
|
| 40 |
+
| Split | Samples |
|
| 41 |
+
|------------|---------|
|
| 42 |
+
| **Train** | XX,XXX |
|
| 43 |
+
| **Validation** | X,XXX |
|
| 44 |
+
| **Test** | X,XXX |
|
| 45 |
+
|
| 46 |
+
## π Features
|
| 47 |
+
| Feature | Type | Description |
|
| 48 |
+
|-----------------|----------------|-------------|
|
| 49 |
+
| `input_ids` | `list[int]` | Tokenized input text |
|
| 50 |
+
| `attention_mask` | `list[int]` | Attention mask for tokens |
|
| 51 |
+
| `labels` | `list[int]` | Multi-label emotion encoding |
|
| 52 |
+
|
| 53 |
+
## π How to Load
|
| 54 |
+
```python
|
| 55 |
+
from datasets import load_dataset
|
| 56 |
+
|
| 57 |
+
dataset = load_dataset("codewithdark/go-emotions-processed")
|
| 58 |
+
print(dataset["train"][0])
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
## ποΈββοΈ Preprocessing Steps
|
| 62 |
+
- **Tokenization:** `bert-base-uncased`
|
| 63 |
+
- **Multi-label encoding:** Binary encoding of emotions
|
| 64 |
+
- **Train/Validation/Test split:** `80/10/10`
|
| 65 |
+
|
| 66 |
+
## π― Labels (Emotions)
|
| 67 |
+
The dataset contains **27 emotion categories**, including:
|
| 68 |
+
- Admiration, Joy, Sadness, Anger, Optimism, Disgust, Love, etc.
|
| 69 |
+
|
| 70 |
+
## π οΈ Citation
|
| 71 |
+
If you use this dataset, please cite:
|
| 72 |
+
```bibtex
|
| 73 |
+
@misc{go_emotions_dataset,
|
| 74 |
+
author = {Google AI},
|
| 75 |
+
title = {GoEmotions Dataset},
|
| 76 |
+
year = {2021},
|
| 77 |
+
url = {https://huggingface.co/datasets/go_emotions}
|
| 78 |
+
}
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
|