1602353775wzj commited on
Commit
698c219
·
verified ·
1 Parent(s): 1e3345d

Add DISCOPALPsychClassification (21 psych labels; train/test stratified)

Browse files
README.md ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: DISCOPALPsychClassification
14
+ tags:
15
+ - poetry
16
+ - spanish
17
+ - sonnet
18
+ - psychology
19
+ - multi-label-classification
20
+ - disco
21
+ - disco-pal
22
+ - mteb
23
+ - poetrymteb
24
+ - embedding-evaluation
25
+ annotations_creators:
26
+ - expert-generated
27
+ source_datasets:
28
+ - DISCO PAL
29
+ - DISCO
30
+ configs:
31
+ - config_name: default
32
+ data_files:
33
+ - split: train
34
+ path: data/train-*
35
+ - split: test
36
+ path: data/test-*
37
+ default: true
38
+ dataset_info:
39
+ - config_name: default
40
+ features:
41
+ - name: id
42
+ dtype: string
43
+ - name: source_index
44
+ dtype: int64
45
+ - name: poem
46
+ dtype: string
47
+ - name: labels
48
+ sequence: int64
49
+ - name: label_names
50
+ sequence: string
51
+ - name: n_annotators
52
+ dtype: int64
53
+ splits:
54
+ - name: train
55
+ num_examples: 210
56
+ - name: test
57
+ num_examples: 55
58
+ ---
59
+
60
+ # DISCOPALPsychClassification
61
+
62
+ Multi-label **psychological feature classification** over **Spanish sonnets** for PoetryMTEB, derived from [DISCO PAL](https://arxiv.org/abs/2007.04626) (Barbado et al., 2020).
63
+
64
+ Experts marked whether each sonnet **refers to** literature-motivated psychological concepts (binary presence). Labels follow the DISCO PAL psychological inventory (rooted in personality-disorder / clinical-educational modelling literature cited by the authors), aggregated by **median** across three annotators.
65
+
66
+ ## Dataset Card
67
+
68
+ | Item | Description |
69
+ |------|-------------|
70
+ | **Source annotations** | [DISCO PAL](https://github.com/AlbertoBarbado/DISCO_PAL) (`Processed Annotations/poems_corpus_all.csv`) |
71
+ | **Source poems** | [DISCO](https://github.com/pruizf/disco) |
72
+ | **Paper** | Barbado et al., [arXiv:2007.04626](https://arxiv.org/abs/2007.04626) |
73
+ | **Languages** | Spanish (`es`) |
74
+ | **Unit** | Full sonnet text (`poem`) |
75
+ | **Labels** | Multi-label subset of **21** psychological concepts (binary) |
76
+ | **Aggregation** | Median of 3 experts; treat median ≥ 0.5 as positive |
77
+ | **Filtering** | Poems with **no** positive psychological label are removed (9 poems) |
78
+ | **Size** | train=210; test=55 |
79
+ | **Splits** | Stratified by primary label (first taxonomy-ordered positive) ≈ 80% / 20%, seed=42 |
80
+ | **License** | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) |
81
+ | **Evaluation metrics** | Multi-label classification on embeddings: **macro/micro F1**, **Average Precision (AP)** |
82
+
83
+ Mean labels/poem ≈ **5.43**.
84
+
85
+ ## Label taxonomy (21)
86
+
87
+ | id | label_name (en) | es (source) | zh | train | test | total |
88
+ |---:|-----------------|-------------|----|------:|-----:|------:|
89
+ | 0 | `Solitude` | Soledad | 孤独 | 50 | 13 | 63 |
90
+ | 1 | `Illusion` | Ilusión | 幻想/憧憬 | 59 | 14 | 73 |
91
+ | 2 | `Dreaming` | Ensoñación | 梦想/白日梦 | 36 | 10 | 46 |
92
+ | 3 | `Greatness` | Grandiosidad | 夸大/宏大感 | 81 | 24 | 105 |
93
+ | 4 | `Pride` | Orgullo | 骄傲 | 57 | 15 | 72 |
94
+ | 5 | `Irritability` | Irritabilidad | 易怒 | 29 | 7 | 36 |
95
+ | 6 | `Anxiety` | Ansiedad | 焦虑 | 61 | 15 | 76 |
96
+ | 7 | `Anger` | Ira | 愤怒 | 42 | 15 | 57 |
97
+ | 8 | `Instability` | Inestabilidad | 不稳定 | 55 | 9 | 64 |
98
+ | 9 | `Idealization` | Idealización | 理想化 | 84 | 23 | 107 |
99
+ | 10 | `Depression` | Depresión | 抑郁 | 30 | 9 | 39 |
100
+ | 11 | `Disappointment` | Desilusión | 失望 | 41 | 6 | 47 |
101
+ | 12 | `Dislike` | Aversión | 厌恶/反感 | 83 | 16 | 99 |
102
+ | 13 | `Insecurity` | Inseguridad | 不安全感 | 35 | 9 | 44 |
103
+ | 14 | `Impotence` | Impotencia | 无力感 | 49 | 13 | 62 |
104
+ | 15 | `Vulnerability` | Vulnerabilidad | 脆弱 | 99 | 30 | 129 |
105
+ | 16 | `Fear` | Temor | 畏惧 | 72 | 22 | 94 |
106
+ | 17 | `Obsession` | Obsesión | 强迫观念 | 28 | 4 | 32 |
107
+ | 18 | `Compulsion` | Compulsión | 强迫行为 | 47 | 9 | 56 |
108
+ | 19 | `Prejudice` | Prejuicio | 偏见 | 30 | 0 | 30 |
109
+ | 20 | `Dramatization` | Dramatización | 戏剧化 | 84 | 24 | 108 |
110
+
111
+ Codebook: `label_taxonomy.json`.
112
+
113
+ Upstream Spanish column names are preserved in the taxonomy (`name_es`) for traceability; classification uses English `label_names`.
114
+
115
+ ## Features
116
+
117
+ | Field | Type | Description |
118
+ |-------|------|-------------|
119
+ | `id` | string | Example id (`discopal-psych-{source_index}`) |
120
+ | `source_index` | int64 | Row index in upstream CSV |
121
+ | `poem` | string | Full Spanish sonnet text |
122
+ | `labels` | list[int64] | Psychological class indices |
123
+ | `label_names` | list[string] | Canonical English concept names |
124
+ | `n_annotators` | int64 | Experts aggregated (3; median) |
125
+
126
+ ## Construction method
127
+
128
+ 1. Load `poems_corpus_all.csv` (median of a1/a2/a3).
129
+ 2. Normalize column names; map 21 Spanish columns → English taxonomy.
130
+ 3. Keep concepts with median ≥ 0.5; drop poems with an empty label set.
131
+ 4. Stratified train/test split by primary (lowest-id positive) label, seed=42.
132
+
133
+ ## Intended use / limitations
134
+
135
+ - For **PoetryMTEB** multi-label probing of Spanish poem embeddings.
136
+ - Labels encode **literary / conceptual presence**, not clinical diagnoses of authors or readers.
137
+ - Companion affective dataset: `DISCOPALAffectClassification`.
138
+
139
+ ## Citation
140
+
141
+ ```bibtex
142
+ @article{barbado2020disco,
143
+ title={DISCO PAL: Diachronic Spanish Sonnet Corpus with Psychological and Affective Labels},
144
+ author={Barbado, Alberto and Fresno, Víctor and Riesco, Ángeles Manjarrés and Ros, Salvador},
145
+ journal={arXiv preprint arXiv:2007.04626},
146
+ year={2020}
147
+ }
148
+ ```
149
+
150
+ Underlying sonnets:
151
+
152
+ ```bibtex
153
+ @misc{disco2017,
154
+ author={Ruiz Fabo, Pablo and Bermúdez Sabel, Helena and Martínez Cantón, Clara and Calvo Tello, José},
155
+ title={Diachronic Spanish Sonnet Corpus (DISCO)},
156
+ year={2017},
157
+ howpublished={UNED / Zenodo},
158
+ doi={10.5281/zenodo.1069844},
159
+ url={https://github.com/pruizf/disco}
160
+ }
161
+ ```
162
+
163
+ Psychological inventory background (as cited by DISCO PAL):
164
+
165
+ ```bibtex
166
+ @mastersthesis{garcia2016owl,
167
+ author={García Franco, J. D. and Manjarrés Riesco, Ángeles},
168
+ title={Modelado de los trastornos de la personalidad en OWL},
169
+ school={UNED},
170
+ year={2016}
171
+ }
172
+ ```
173
+
174
+ ## License
175
+
176
+ Apache License 2.0 for DISCO PAL annotations and this redistribution. Poem texts originate from DISCO; respect upstream DISCO terms for uses beyond research evaluation.
data/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3f37b9bb93f860d43776dcf822e2ee057ac3f7413922e4796847610970c566b
3
+ size 27900
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0cb4ec8cfe3335d484f4c5c47d907dbba3422a0a08cba7104ec34f757f53bb5a
3
+ size 87799
dataset_infos.yaml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 115699
13
+ download_size: 115699
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
+ - dtype: int64
28
+ name: n_annotators
29
+ splits:
30
+ - name: train
31
+ num_bytes: 87799
32
+ num_examples: 210
33
+ - name: test
34
+ num_bytes: 27900
35
+ num_examples: 55
label_taxonomy.json ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "n_classes": 21,
3
+ "labels": [
4
+ {
5
+ "id": 0,
6
+ "name": "Solitude",
7
+ "name_es": "Soledad",
8
+ "name_zh": "孤独"
9
+ },
10
+ {
11
+ "id": 1,
12
+ "name": "Illusion",
13
+ "name_es": "Ilusión",
14
+ "name_zh": "幻想/憧憬"
15
+ },
16
+ {
17
+ "id": 2,
18
+ "name": "Dreaming",
19
+ "name_es": "Ensoñación",
20
+ "name_zh": "梦想/白日梦"
21
+ },
22
+ {
23
+ "id": 3,
24
+ "name": "Greatness",
25
+ "name_es": "Grandiosidad",
26
+ "name_zh": "夸大/宏大感"
27
+ },
28
+ {
29
+ "id": 4,
30
+ "name": "Pride",
31
+ "name_es": "Orgullo",
32
+ "name_zh": "骄傲"
33
+ },
34
+ {
35
+ "id": 5,
36
+ "name": "Irritability",
37
+ "name_es": "Irritabilidad",
38
+ "name_zh": "易怒"
39
+ },
40
+ {
41
+ "id": 6,
42
+ "name": "Anxiety",
43
+ "name_es": "Ansiedad",
44
+ "name_zh": "焦虑"
45
+ },
46
+ {
47
+ "id": 7,
48
+ "name": "Anger",
49
+ "name_es": "Ira",
50
+ "name_zh": "愤怒"
51
+ },
52
+ {
53
+ "id": 8,
54
+ "name": "Instability",
55
+ "name_es": "Inestabilidad",
56
+ "name_zh": "不稳定"
57
+ },
58
+ {
59
+ "id": 9,
60
+ "name": "Idealization",
61
+ "name_es": "Idealización",
62
+ "name_zh": "理想化"
63
+ },
64
+ {
65
+ "id": 10,
66
+ "name": "Depression",
67
+ "name_es": "Depresión",
68
+ "name_zh": "抑郁"
69
+ },
70
+ {
71
+ "id": 11,
72
+ "name": "Disappointment",
73
+ "name_es": "Desilusión",
74
+ "name_zh": "失望"
75
+ },
76
+ {
77
+ "id": 12,
78
+ "name": "Dislike",
79
+ "name_es": "Aversión",
80
+ "name_zh": "厌恶/反感"
81
+ },
82
+ {
83
+ "id": 13,
84
+ "name": "Insecurity",
85
+ "name_es": "Inseguridad",
86
+ "name_zh": "不安全感"
87
+ },
88
+ {
89
+ "id": 14,
90
+ "name": "Impotence",
91
+ "name_es": "Impotencia",
92
+ "name_zh": "无力感"
93
+ },
94
+ {
95
+ "id": 15,
96
+ "name": "Vulnerability",
97
+ "name_es": "Vulnerabilidad",
98
+ "name_zh": "脆弱"
99
+ },
100
+ {
101
+ "id": 16,
102
+ "name": "Fear",
103
+ "name_es": "Temor",
104
+ "name_zh": "畏惧"
105
+ },
106
+ {
107
+ "id": 17,
108
+ "name": "Obsession",
109
+ "name_es": "Obsesión",
110
+ "name_zh": "强迫观念"
111
+ },
112
+ {
113
+ "id": 18,
114
+ "name": "Compulsion",
115
+ "name_es": "Compulsión",
116
+ "name_zh": "强迫行为"
117
+ },
118
+ {
119
+ "id": 19,
120
+ "name": "Prejudice",
121
+ "name_es": "Prejuicio",
122
+ "name_zh": "偏见"
123
+ },
124
+ {
125
+ "id": 20,
126
+ "name": "Dramatization",
127
+ "name_es": "Dramatización",
128
+ "name_zh": "戏剧化"
129
+ }
130
+ ],
131
+ "aggregation": "median of 3 experts; positive if median >= 0.5",
132
+ "counts": {
133
+ "train": {
134
+ "Solitude": 50,
135
+ "Dreaming": 36,
136
+ "Anxiety": 61,
137
+ "Instability": 55,
138
+ "Idealization": 84,
139
+ "Depression": 30,
140
+ "Disappointment": 41,
141
+ "Dislike": 83,
142
+ "Insecurity": 35,
143
+ "Impotence": 49,
144
+ "Vulnerability": 99,
145
+ "Fear": 72,
146
+ "Obsession": 28,
147
+ "Compulsion": 47,
148
+ "Dramatization": 84,
149
+ "Greatness": 81,
150
+ "Illusion": 59,
151
+ "Pride": 57,
152
+ "Anger": 42,
153
+ "Prejudice": 30,
154
+ "Irritability": 29
155
+ },
156
+ "test": {
157
+ "Greatness": 24,
158
+ "Idealization": 23,
159
+ "Fear": 22,
160
+ "Irritability": 7,
161
+ "Anger": 15,
162
+ "Solitude": 13,
163
+ "Anxiety": 15,
164
+ "Depression": 9,
165
+ "Impotence": 13,
166
+ "Vulnerability": 30,
167
+ "Dramatization": 24,
168
+ "Dislike": 16,
169
+ "Illusion": 14,
170
+ "Dreaming": 10,
171
+ "Pride": 15,
172
+ "Instability": 9,
173
+ "Insecurity": 9,
174
+ "Obsession": 4,
175
+ "Compulsion": 9,
176
+ "Disappointment": 6
177
+ },
178
+ "all": {
179
+ "Solitude": 63,
180
+ "Greatness": 105,
181
+ "Pride": 72,
182
+ "Idealization": 107,
183
+ "Illusion": 73,
184
+ "Anxiety": 76,
185
+ "Vulnerability": 129,
186
+ "Fear": 94,
187
+ "Dreaming": 46,
188
+ "Depression": 39,
189
+ "Disappointment": 47,
190
+ "Impotence": 62,
191
+ "Dislike": 99,
192
+ "Instability": 64,
193
+ "Insecurity": 44,
194
+ "Prejudice": 30,
195
+ "Dramatization": 108,
196
+ "Irritability": 36,
197
+ "Anger": 57,
198
+ "Obsession": 32,
199
+ "Compulsion": 56
200
+ }
201
+ },
202
+ "split": {
203
+ "train_ratio": 0.8,
204
+ "seed": 42,
205
+ "stratify": "primary_psych_label"
206
+ },
207
+ "dropped_empty": 9
208
+ }