Datasets:
Tasks:
Text Classification
Formats:
parquet
Sub-tasks:
multi-label-classification
Languages:
Spanish
Size:
< 1K
ArXiv:
License:
Add DISCOPALAffectClassification (5 emotions; z>=1+top-1; train/test)
Browse files- README.md +175 -0
- data/test-00000-of-00001.parquet +3 -0
- data/train-00000-of-00001.parquet +3 -0
- dataset_infos.yaml +44 -0
- label_taxonomy.json +105 -0
README.md
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-classification
|
| 5 |
+
task_ids:
|
| 6 |
+
- multi-label-classification
|
| 7 |
+
language:
|
| 8 |
+
- es
|
| 9 |
+
multilinguality:
|
| 10 |
+
- monolingual
|
| 11 |
+
size_categories:
|
| 12 |
+
- n<1K
|
| 13 |
+
pretty_name: DISCOPALAffectClassification
|
| 14 |
+
tags:
|
| 15 |
+
- poetry
|
| 16 |
+
- spanish
|
| 17 |
+
- sonnet
|
| 18 |
+
- affect
|
| 19 |
+
- emotion-classification
|
| 20 |
+
- multi-label-classification
|
| 21 |
+
- disco
|
| 22 |
+
- disco-pal
|
| 23 |
+
- mteb
|
| 24 |
+
- poetrymteb
|
| 25 |
+
- embedding-evaluation
|
| 26 |
+
annotations_creators:
|
| 27 |
+
- expert-generated
|
| 28 |
+
source_datasets:
|
| 29 |
+
- DISCO PAL
|
| 30 |
+
- DISCO
|
| 31 |
+
configs:
|
| 32 |
+
- config_name: default
|
| 33 |
+
data_files:
|
| 34 |
+
- split: train
|
| 35 |
+
path: data/train-*
|
| 36 |
+
- split: test
|
| 37 |
+
path: data/test-*
|
| 38 |
+
default: true
|
| 39 |
+
dataset_info:
|
| 40 |
+
- config_name: default
|
| 41 |
+
features:
|
| 42 |
+
- name: id
|
| 43 |
+
dtype: string
|
| 44 |
+
- name: source_index
|
| 45 |
+
dtype: int64
|
| 46 |
+
- name: poem
|
| 47 |
+
dtype: string
|
| 48 |
+
- name: labels
|
| 49 |
+
sequence: int64
|
| 50 |
+
- name: label_names
|
| 51 |
+
sequence: string
|
| 52 |
+
- name: scores
|
| 53 |
+
sequence: float64
|
| 54 |
+
- name: dimensional_scores
|
| 55 |
+
sequence: float64
|
| 56 |
+
- name: dimensional_names
|
| 57 |
+
sequence: string
|
| 58 |
+
- name: n_annotators
|
| 59 |
+
dtype: int64
|
| 60 |
+
splits:
|
| 61 |
+
- name: train
|
| 62 |
+
num_examples: 219
|
| 63 |
+
- name: test
|
| 64 |
+
num_examples: 55
|
| 65 |
+
---
|
| 66 |
+
|
| 67 |
+
# DISCOPALAffectClassification
|
| 68 |
+
|
| 69 |
+
Multi-label **affect / emotion classification** over **Spanish sonnets** for PoetryMTEB, derived from [DISCO PAL](https://arxiv.org/abs/2007.04626) (Barbado et al., 2020).
|
| 70 |
+
|
| 71 |
+
Each poem is a classical **soneto** from the diachronic Spanish sonnet corpus [DISCO](https://github.com/pruizf/disco), annotated by three POSTDATA (UNED) domain experts for evoked affect on a **1–4** intensity scale. We aggregate with the official **median** file (`poems_corpus_all.csv`) and binarize the five basic emotions for embedding evaluation.
|
| 72 |
+
|
| 73 |
+
## Dataset Card
|
| 74 |
+
|
| 75 |
+
| Item | Description |
|
| 76 |
+
|------|-------------|
|
| 77 |
+
| **Source annotations** | [DISCO PAL](https://github.com/AlbertoBarbado/DISCO_PAL) (`Processed Annotations/poems_corpus_all.csv`) |
|
| 78 |
+
| **Source poems** | [DISCO](https://github.com/pruizf/disco) (Diachronic Spanish Sonnet Corpus) |
|
| 79 |
+
| **Paper** | Barbado et al., *DISCO PAL: Diachronic Spanish Sonnet Corpus with Psychological and Affective Labels*, [arXiv:2007.04626](https://arxiv.org/abs/2007.04626) |
|
| 80 |
+
| **Languages** | Spanish (`es`) |
|
| 81 |
+
| **Unit** | Full sonnet text (`poem`) |
|
| 82 |
+
| **Labels** | Multi-label subset of **5** basic emotions (Happiness, Sadness, Anger, Fear, Disgust) |
|
| 83 |
+
| **Score scale** | Continuous intensities **1–4** (evoked affect); median of 3 experts |
|
| 84 |
+
| **Size** | train=219; test=55 |
|
| 85 |
+
| **Splits** | Stratified by primary (highest-score) affect ≈ 80% / 20%, seed=42 |
|
| 86 |
+
| **License** | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) (DISCO PAL project) |
|
| 87 |
+
| **Evaluation metrics** | Multi-label classification on embeddings: **macro/micro F1**, **Average Precision (AP)** |
|
| 88 |
+
|
| 89 |
+
## Label binarization
|
| 90 |
+
|
| 91 |
+
Absolute thresholds on the 1–4 scale leave many poems with **no** positive emotion (e.g. score ≥ 3 empties ~45% of poems). Following the PoetryMTEB POCA pipeline, we therefore use **relative** within-poem salience:
|
| 92 |
+
|
| 93 |
+
1. Take the five emotion intensities (median over experts).
|
| 94 |
+
2. Compute **within-poem z-scores**; keep emotions with \(z \ge 1.0\).
|
| 95 |
+
3. Always include the **top-1** emotion (guarantees ≥1 label).
|
| 96 |
+
|
| 97 |
+
Mean labels/poem ≈ **1.22**.
|
| 98 |
+
|
| 99 |
+
Auxiliary **dimensional** ratings (Valence, Arousal, Concreteness, Imageability, Context Availability) are stored as continuous scores for analysis; they are **not** classification targets in this release.
|
| 100 |
+
|
| 101 |
+
## Label taxonomy (5)
|
| 102 |
+
|
| 103 |
+
| id | label_name (en) | es | zh | train | test | total |
|
| 104 |
+
|---:|-----------------|----|----|------:|-----:|------:|
|
| 105 |
+
| 0 | `Happiness` | Alegría | 喜悦 | 86 | 22 | 108 |
|
| 106 |
+
| 1 | `Sadness` | Tristeza | 悲伤 | 125 | 33 | 158 |
|
| 107 |
+
| 2 | `Anger` | Ira | 愤怒 | 14 | 4 | 18 |
|
| 108 |
+
| 3 | `Fear` | Miedo | 恐惧 | 10 | 2 | 12 |
|
| 109 |
+
| 4 | `Disgust` | Asco | 厌恶 | 30 | 8 | 38 |
|
| 110 |
+
|
| 111 |
+
Codebook: `label_taxonomy.json`.
|
| 112 |
+
|
| 113 |
+
### Dimensional scores (auxiliary)
|
| 114 |
+
|
| 115 |
+
| name (en) | es | zh | scale |
|
| 116 |
+
|-----------|----|----|-------|
|
| 117 |
+
| `Valence` | Valencia | 效价 | 1–4 (median of 3 experts) |
|
| 118 |
+
| `Arousal` | Activación | 唤醒度 | 1–4 (median of 3 experts) |
|
| 119 |
+
| `Concreteness` | Concreción | 具体性 | 1–4 (median of 3 experts) |
|
| 120 |
+
| `Imageability` | Imaginabilidad | 意象性 | 1–4 (median of 3 experts) |
|
| 121 |
+
| `ContextAvailability` | Disponibilidad contextual | 语境可得性 | 1–4 (median of 3 experts) |
|
| 122 |
+
|
| 123 |
+
## Features
|
| 124 |
+
|
| 125 |
+
| Field | Type | Description |
|
| 126 |
+
|-------|------|-------------|
|
| 127 |
+
| `id` | string | Example id (`discopal-affect-{source_index}`) |
|
| 128 |
+
| `source_index` | int64 | Row index in upstream `poems_corpus_all.csv` |
|
| 129 |
+
| `poem` | string | Full Spanish sonnet text (classification input) |
|
| 130 |
+
| `labels` | list[int64] | Emotion class indices |
|
| 131 |
+
| `label_names` | list[string] | Canonical English emotion names |
|
| 132 |
+
| `scores` | list[float64] | Median intensities for the 5 emotions (taxonomy order, 1–4) |
|
| 133 |
+
| `dimensional_scores` | list[float64] | Median dimensional ratings (order = `dimensional_names`) |
|
| 134 |
+
| `dimensional_names` | list[string] | Names of dimensional dimensions |
|
| 135 |
+
| `n_annotators` | int64 | Number of experts aggregated (3; median) |
|
| 136 |
+
|
| 137 |
+
## Construction method
|
| 138 |
+
|
| 139 |
+
1. Load `poems_corpus_all.csv` (median of annotators a1/a2/a3).
|
| 140 |
+
2. Normalize column names (strip whitespace / NBSP artifacts).
|
| 141 |
+
3. Map source columns (`happinness` typo preserved upstream → `Happiness`) to the 5-emotion taxonomy.
|
| 142 |
+
4. Binarize with within-poem \(z \ge 1.0\) + top-1.
|
| 143 |
+
5. Stratified train/test split by primary affect (seed=42).
|
| 144 |
+
|
| 145 |
+
## Intended use
|
| 146 |
+
|
| 147 |
+
Designed for **PoetryMTEB / MTEB-style** multi-label classification probing of poem embeddings in Spanish. Not a clinical diagnostic resource; psychological companion labels are released separately as `DISCOPALPsychClassification`.
|
| 148 |
+
|
| 149 |
+
## Citation
|
| 150 |
+
|
| 151 |
+
```bibtex
|
| 152 |
+
@article{barbado2020disco,
|
| 153 |
+
title={DISCO PAL: Diachronic Spanish Sonnet Corpus with Psychological and Affective Labels},
|
| 154 |
+
author={Barbado, Alberto and Fresno, Víctor and Riesco, Ángeles Manjarrés and Ros, Salvador},
|
| 155 |
+
journal={arXiv preprint arXiv:2007.04626},
|
| 156 |
+
year={2020}
|
| 157 |
+
}
|
| 158 |
+
```
|
| 159 |
+
|
| 160 |
+
Please also cite the underlying sonnet corpus:
|
| 161 |
+
|
| 162 |
+
```bibtex
|
| 163 |
+
@misc{disco2017,
|
| 164 |
+
author={Ruiz Fabo, Pablo and Bermúdez Sabel, Helena and Martínez Cantón, Clara and Calvo Tello, José},
|
| 165 |
+
title={Diachronic Spanish Sonnet Corpus (DISCO)},
|
| 166 |
+
year={2017},
|
| 167 |
+
howpublished={UNED / Zenodo},
|
| 168 |
+
doi={10.5281/zenodo.1069844},
|
| 169 |
+
url={https://github.com/pruizf/disco}
|
| 170 |
+
}
|
| 171 |
+
```
|
| 172 |
+
|
| 173 |
+
## License
|
| 174 |
+
|
| 175 |
+
Apache License 2.0 for DISCO PAL annotations and this redistribution. Poem texts originate from DISCO; respect upstream DISCO terms when redistributing full texts beyond research evaluation use.
|
data/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2cf576a2a4298b76cd2f25fea74642b2cc34709bae41a4521f06781aa844afbd
|
| 3 |
+
size 29320
|
data/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d388b7cd9b5bf27d23c0ba69929fbcf1eefc1526faedddef1c85d1e077855be
|
| 3 |
+
size 92844
|
dataset_infos.yaml
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
configs:
|
| 2 |
+
- config_name: default
|
| 3 |
+
data_files:
|
| 4 |
+
- path: data/train-*.parquet
|
| 5 |
+
split: train
|
| 6 |
+
- path: data/test-*.parquet
|
| 7 |
+
split: test
|
| 8 |
+
default: true
|
| 9 |
+
dataset_info:
|
| 10 |
+
configs:
|
| 11 |
+
- config_name: default
|
| 12 |
+
dataset_size: 122164
|
| 13 |
+
download_size: 122164
|
| 14 |
+
features:
|
| 15 |
+
- dtype: string
|
| 16 |
+
name: id
|
| 17 |
+
- dtype: int64
|
| 18 |
+
name: source_index
|
| 19 |
+
- dtype: string
|
| 20 |
+
name: poem
|
| 21 |
+
- sequence:
|
| 22 |
+
dtype: int64
|
| 23 |
+
name: labels
|
| 24 |
+
- sequence:
|
| 25 |
+
dtype: string
|
| 26 |
+
name: label_names
|
| 27 |
+
- sequence:
|
| 28 |
+
dtype: float64
|
| 29 |
+
name: scores
|
| 30 |
+
- sequence:
|
| 31 |
+
dtype: float64
|
| 32 |
+
name: dimensional_scores
|
| 33 |
+
- sequence:
|
| 34 |
+
dtype: string
|
| 35 |
+
name: dimensional_names
|
| 36 |
+
- dtype: int64
|
| 37 |
+
name: n_annotators
|
| 38 |
+
splits:
|
| 39 |
+
- name: train
|
| 40 |
+
num_bytes: 92844
|
| 41 |
+
num_examples: 219
|
| 42 |
+
- name: test
|
| 43 |
+
num_bytes: 29320
|
| 44 |
+
num_examples: 55
|
label_taxonomy.json
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n_classes": 5,
|
| 3 |
+
"labels": [
|
| 4 |
+
{
|
| 5 |
+
"id": 0,
|
| 6 |
+
"name": "Happiness",
|
| 7 |
+
"name_es": "Alegría",
|
| 8 |
+
"name_zh": "喜悦",
|
| 9 |
+
"source_column": "happinness"
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"id": 1,
|
| 13 |
+
"name": "Sadness",
|
| 14 |
+
"name_es": "Tristeza",
|
| 15 |
+
"name_zh": "悲伤",
|
| 16 |
+
"source_column": "sadness"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"id": 2,
|
| 20 |
+
"name": "Anger",
|
| 21 |
+
"name_es": "Ira",
|
| 22 |
+
"name_zh": "愤怒",
|
| 23 |
+
"source_column": "anger"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"id": 3,
|
| 27 |
+
"name": "Fear",
|
| 28 |
+
"name_es": "Miedo",
|
| 29 |
+
"name_zh": "恐惧",
|
| 30 |
+
"source_column": "fear"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"id": 4,
|
| 34 |
+
"name": "Disgust",
|
| 35 |
+
"name_es": "Asco",
|
| 36 |
+
"name_zh": "厌恶",
|
| 37 |
+
"source_column": "disgust"
|
| 38 |
+
}
|
| 39 |
+
],
|
| 40 |
+
"dimensional": [
|
| 41 |
+
{
|
| 42 |
+
"name": "Valence",
|
| 43 |
+
"name_es": "Valencia",
|
| 44 |
+
"name_zh": "效价",
|
| 45 |
+
"source_column": "valence"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"name": "Arousal",
|
| 49 |
+
"name_es": "Activación",
|
| 50 |
+
"name_zh": "唤醒度",
|
| 51 |
+
"source_column": "arousal"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"name": "Concreteness",
|
| 55 |
+
"name_es": "Concreción",
|
| 56 |
+
"name_zh": "具体性",
|
| 57 |
+
"source_column": "concreteness"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"name": "Imageability",
|
| 61 |
+
"name_es": "Imaginabilidad",
|
| 62 |
+
"name_zh": "意象性",
|
| 63 |
+
"source_column": "imageability"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"name": "ContextAvailability",
|
| 67 |
+
"name_es": "Disponibilidad contextual",
|
| 68 |
+
"name_zh": "语境可得性",
|
| 69 |
+
"source_column": "context availability"
|
| 70 |
+
}
|
| 71 |
+
],
|
| 72 |
+
"binarization": {
|
| 73 |
+
"rule": "within-poem z>=1.0 + always include top-1",
|
| 74 |
+
"score_aggregation": "median of 3 expert annotators",
|
| 75 |
+
"score_scale": "1-4"
|
| 76 |
+
},
|
| 77 |
+
"counts": {
|
| 78 |
+
"train": {
|
| 79 |
+
"Happiness": 86,
|
| 80 |
+
"Sadness": 125,
|
| 81 |
+
"Fear": 10,
|
| 82 |
+
"Disgust": 30,
|
| 83 |
+
"Anger": 14
|
| 84 |
+
},
|
| 85 |
+
"test": {
|
| 86 |
+
"Happiness": 22,
|
| 87 |
+
"Sadness": 33,
|
| 88 |
+
"Disgust": 8,
|
| 89 |
+
"Fear": 2,
|
| 90 |
+
"Anger": 4
|
| 91 |
+
},
|
| 92 |
+
"all": {
|
| 93 |
+
"Happiness": 108,
|
| 94 |
+
"Sadness": 158,
|
| 95 |
+
"Anger": 18,
|
| 96 |
+
"Disgust": 38,
|
| 97 |
+
"Fear": 12
|
| 98 |
+
}
|
| 99 |
+
},
|
| 100 |
+
"split": {
|
| 101 |
+
"train_ratio": 0.8,
|
| 102 |
+
"seed": 42,
|
| 103 |
+
"stratify": "primary_affect"
|
| 104 |
+
}
|
| 105 |
+
}
|