1602353775wzj commited on
Commit
edc202e
·
verified ·
1 Parent(s): 6446a42

Add EnglishPoetryFormClassification v1.0.0 (15 forms, freq>=10; train/test; CC BY-SA 4.0)

Browse files
CITATION.bib ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @misc{riazhsks_multilingual_annotated_poems,
2
+ title = {Multilingual Annotated Poems},
3
+ author = {riazhsks},
4
+ year = {2025},
5
+ howpublished = {GitHub},
6
+ url = {https://github.com/riazhsks/multilingual-annotated-poems},
7
+ note = {Multilingual poetry corpora with form/meter/rhyme annotations}
8
+ }
9
+
10
+ @misc{englishpoetryformclassification_poetrymteb,
11
+ title = {English Poetry Form Classification (PoetryMTEB packaging)},
12
+ author = {PoetryMTEB},
13
+ year = {2026},
14
+ howpublished = {Hugging Face Datasets},
15
+ url = {https://huggingface.co/datasets/PoetryMTEB/EnglishPoetryFormClassification},
16
+ note = {version 1.0.0}
17
+ }
CITATION.cff ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ cff-version: 1.2.0
2
+ message: If you use this dataset, please cite the upstream multilingual-annotated-poems repository and this PoetryMTEB packaging.
3
+ title: "English Poetry Form Classification (PoetryMTEB packaging)"
4
+ version: "1.0.0"
5
+ license: CC-BY-SA-4.0
6
+ authors:
7
+ - name: "riazhsks"
8
+ - name: "PoetryMTEB"
9
+ url: "https://huggingface.co/datasets/PoetryMTEB/EnglishPoetryFormClassification"
10
+ repository-code: "https://github.com/riazhsks/multilingual-annotated-poems"
LICENSE ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
2
+ ==========================================================================
3
+
4
+ This PoetryMTEB packaging redistributes annotations and texts derived from:
5
+
6
+ https://github.com/riazhsks/multilingual-annotated-poems
7
+
8
+ Upstream repository license notice: CC-BY-SA
9
+
10
+ Please also respect licenses / terms of the original poetry corpora cited in
11
+ the upstream README (CCV, poetry-eval English, DISCO/Spanish sonnets, DLK, etc.).
12
+
13
+ Full legal text: https://creativecommons.org/licenses/by-sa/4.0/legalcode
README.md ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ task_categories:
4
+ - text-classification
5
+ task_ids:
6
+ - multi-class-classification
7
+ language:
8
+ - en
9
+ multilinguality:
10
+ - monolingual
11
+ size_categories:
12
+ - 1K<n<10K
13
+ pretty_name: English Poetry Form Classification
14
+ tags:
15
+ - poetry
16
+ - english
17
+ - form-classification
18
+ - poetic-form
19
+ - text-classification
20
+ - mteb
21
+ - poetrymteb
22
+ - embedding-evaluation
23
+ annotations_creators:
24
+ - found
25
+ source_datasets:
26
+ - riazhsks/multilingual-annotated-poems
27
+ configs:
28
+ - config_name: default
29
+ data_files:
30
+ - split: train
31
+ path: data/train-*
32
+ - split: test
33
+ path: data/test-*
34
+ default: true
35
+ dataset_info:
36
+ - config_name: default
37
+ features:
38
+ - name: id
39
+ dtype: string
40
+ - name: poem
41
+ dtype: string
42
+ - name: title
43
+ dtype: string
44
+ - name: author
45
+ dtype: string
46
+ - name: label
47
+ dtype: int64
48
+ - name: label_name
49
+ dtype: string
50
+ splits:
51
+ - name: train
52
+ num_examples: 1080
53
+ - name: test
54
+ num_examples: 271
55
+ ---
56
+
57
+ # English Poetry Form Classification
58
+
59
+ Single-label **English poetic form classification** for PoetryMTEB embedding evaluation, derived from the English corpus in [multilingual-annotated-poems](https://github.com/riazhsks/multilingual-annotated-poems) (originally based on [poetry-eval](https://github.com/maria-antoniak/poetry-eval) / Walsh et al., EMNLP Findings 2024).
60
+
61
+ ## Dataset Card
62
+
63
+ | Item | Description |
64
+ |------|-------------|
65
+ | **Source** | [https://github.com/riazhsks/multilingual-annotated-poems](https://github.com/riazhsks/multilingual-annotated-poems) → `corpora/english_poems_processed.jsonl` |
66
+ | **Languages** | English (`en`) |
67
+ | **Size** | train=1080; test=271 (no validation; MTEB Classification: train→fit, test→score) |
68
+ | **Classes** | 15 forms with frequency ≥ 10 |
69
+ | **Filtering** | Drop empty/`null` form; poem length ∈ [40, 8000] chars; rare forms (count &lt; 10) |
70
+ | **Splits** | Stratified by form ≈ 80% / 19%, seed=42 |
71
+ | **License** | [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) (upstream CC-BY-SA) |
72
+ | **Dataset version** | `1.0.0` |
73
+ | **Evaluation metrics** | Classification on embeddings: **accuracy**, **macro/weighted F1** |
74
+
75
+ ## Features
76
+
77
+ | Field | Type | Description |
78
+ |-------|------|-------------|
79
+ | `id` | string | Example id |
80
+ | `poem` | string | Poem text (classification input) |
81
+ | `title` | string | Title (metadata) |
82
+ | `author` | string | Author (metadata) |
83
+ | `label` | int64 | Form class index 0 … C−1 |
84
+ | `label_name` | string | Form name |
85
+
86
+ Codebook: `label_taxonomy.json`.
87
+
88
+ ### Label inventory (kept)
89
+
90
+ | id | label_name | gloss | train | test | total* |
91
+ |---:|------------|-------|------:|-----:|-------:|
92
+ | 0 | `sonnet` | Sonnet (十四行) | 468 | 117 | 585 |
93
+ | 1 | `couplet` | Couplet (对句) | 220 | 55 | 275 |
94
+ | 2 | `common measure` | Common measure (通用格) | 55 | 14 | 69 |
95
+ | 3 | `ballad` | Ballad (民谣体) | 50 | 13 | 63 |
96
+ | 4 | `elegy` | Elegy (挽歌) | 49 | 12 | 61 |
97
+ | 5 | `free verse` | Free verse (自由诗) | 39 | 10 | 49 |
98
+ | 6 | `blank verse` | Blank verse (无韵诗) | 34 | 9 | 43 |
99
+ | 7 | `ode` | Ode (颂歌) | 34 | 8 | 42 |
100
+ | 8 | `dramatic monologue` | Dramatic monologue (戏剧独白) | 33 | 8 | 41 |
101
+ | 9 | `prose poem` | Prose poem (散文诗) | 30 | 8 | 38 |
102
+ | 10 | `pastoral` | Pastoral (牧歌) | 29 | 7 | 36 |
103
+ | 11 | `haiku` | Haiku (俳句) | 13 | 3 | 16 |
104
+ | 12 | `quatrain` | Quatrain (四行) | 10 | 3 | 13 |
105
+ | 13 | `ekphrasis` | Ekphrasis (艺格敷词) | 8 | 2 | 10 |
106
+ | 14 | `ars poetica` | Ars poetica (诗艺) | 8 | 2 | 10 |
107
+
108
+ \* totals are class counts after length filtering (same pool used for train/test).
109
+
110
+ ### Dropped forms (count &lt; 10)
111
+
112
+ | form | count |
113
+ |------|------:|
114
+ | limerick | 6 |
115
+ | concrete or pattern poetry | 5 |
116
+ | aubade | 3 |
117
+ | sestina | 3 |
118
+ | ghazal | 2 |
119
+ | villanelle | 1 |
120
+ | pantoum | 1 |
121
+
122
+ ## Construction method
123
+
124
+ 1. Load English JSONL from multilingual-annotated-poems.
125
+ 2. Keep rows with non-empty gold `form` and `text`.
126
+ 3. Filter by character length; keep classes with frequency ≥ 10.
127
+ 4. Map forms to contiguous ids (frequency-descending).
128
+ 5. Stratified train/test split by form (no validation).
129
+
130
+ ## How to load
131
+
132
+ ```python
133
+ from datasets import load_dataset
134
+
135
+ ds = load_dataset("PoetryMTEB/EnglishPoetryFormClassification")
136
+ print(ds["test"][0]["label_name"], ds["test"][0]["poem"][:80])
137
+ ```
138
+
139
+ ## Citation
140
+
141
+ ```bibtex
142
+ @misc{riazhsks_multilingual_annotated_poems,
143
+ title={Multilingual Annotated Poems},
144
+ author={riazhsks},
145
+ year={2025},
146
+ url={https://github.com/riazhsks/multilingual-annotated-poems}
147
+ }
148
+
149
+ @inproceedings{walsh-etal-2024-sonnet,
150
+ title={Sonnet or Not, Bot? Poetry Evaluation for Large Models and Datasets},
151
+ author={Walsh, Melanie and Preus, Anna and Antoniak, Maria},
152
+ booktitle={Findings of EMNLP 2024},
153
+ year={2024},
154
+ url={https://aclanthology.org/2024.findings-emnlp.914/}
155
+ }
156
+ ```
157
+
158
+ Hub packaging: `PoetryMTEB/EnglishPoetryFormClassification` (v1.0.0).
VERSION ADDED
@@ -0,0 +1 @@
 
 
1
+ 1.0.0
checksums.sha256 ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ad4afc66ea831c3ecd6b99fc1de39e26b0e7d8f92e5a8a78f399b951e369a5d2 CITATION.bib
2
+ dfe4036bccb46605c6e3826308ba9d2e466540fa712e845aba0ecb7ec6382194 CITATION.cff
3
+ f74e3e6df27a4ee27307315977ebedc2b31803c3cacce5105357a7820159829f data/test-00000-of-00001.parquet
4
+ ca925a64d8b708fe44e1b66653135fcfe65bb0cfc5185f03c4161ed9524361a0 data/train-00000-of-00001.parquet
5
+ 70f04ffc5f0290b7cf73b8e432b01de16ac2fdb020d5b1f7787bc8557f17dcd0 dataset_infos.yaml
6
+ f32f2d3a79000c41e80e97a603a0e119e21c163c67e87b50e1f5f00334cb98da label_taxonomy.json
7
+ 6a7b381325060368e7c1370f6daad24d406bad9f167c1c3a30ed2bd3b816f94a LICENSE
8
+ 08806910c18bdf01908493f202206fb8c25f1a581f5044491f650620144eb79f metadata.json
9
+ 05631d40739574072d7cac6c4e6c5d6a7b329cdd2140b2527e05e9400e58d56b README.md
10
+ 34ca08fe91e693769063e7cf3695357c619fd331028f7ba7ec58f7dc44efe522 stats.json
11
+ 4ca8bbd3c595ee306226c6996b32b8d47a900217c55a7ed0cfc868ee444f34f1 VERSION
data/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f74e3e6df27a4ee27307315977ebedc2b31803c3cacce5105357a7820159829f
3
+ size 237068
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca925a64d8b708fe44e1b66653135fcfe65bb0cfc5185f03c4161ed9524361a0
3
+ size 904545
dataset_infos.yaml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 1141613
13
+ download_size: 1141613
14
+ features:
15
+ - dtype: string
16
+ name: id
17
+ - dtype: string
18
+ name: poem
19
+ - dtype: string
20
+ name: title
21
+ - dtype: string
22
+ name: author
23
+ - dtype: int64
24
+ name: label
25
+ - dtype: string
26
+ name: label_name
27
+ splits:
28
+ - name: train
29
+ num_bytes: 904545
30
+ num_examples: 1080
31
+ - name: test
32
+ num_bytes: 237068
33
+ num_examples: 271
label_taxonomy.json ADDED
@@ -0,0 +1,249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "description": "Form codebook for EnglishPoetryFormClassification",
3
+ "source": "https://github.com/riazhsks/multilingual-annotated-poems",
4
+ "min_count": 10,
5
+ "filtering": {
6
+ "n_raw": 1453,
7
+ "n_no_form": 0,
8
+ "n_candidates_after_length_filter": 1372,
9
+ "n_no_text": 0,
10
+ "n_length_filtered": 81,
11
+ "n_rare_label_rows": 21,
12
+ "n_kept": 1351,
13
+ "min_count": 10,
14
+ "max_chars": 8000,
15
+ "min_chars": 40,
16
+ "dropped_labels": [
17
+ [
18
+ "limerick",
19
+ 6
20
+ ],
21
+ [
22
+ "concrete or pattern poetry",
23
+ 5
24
+ ],
25
+ [
26
+ "aubade",
27
+ 3
28
+ ],
29
+ [
30
+ "sestina",
31
+ 3
32
+ ],
33
+ [
34
+ "ghazal",
35
+ 2
36
+ ],
37
+ [
38
+ "villanelle",
39
+ 1
40
+ ],
41
+ [
42
+ "pantoum",
43
+ 1
44
+ ]
45
+ ],
46
+ "filtered_label_counts": {
47
+ "ghazal": 2,
48
+ "sonnet": 585,
49
+ "couplet": 275,
50
+ "dramatic monologue": 41,
51
+ "elegy": 61,
52
+ "ballad": 63,
53
+ "blank verse": 43,
54
+ "common measure": 69,
55
+ "pastoral": 36,
56
+ "aubade": 3,
57
+ "ode": 42,
58
+ "free verse": 49,
59
+ "concrete or pattern poetry": 5,
60
+ "ekphrasis": 10,
61
+ "haiku": 16,
62
+ "prose poem": 38,
63
+ "quatrain": 13,
64
+ "limerick": 6,
65
+ "ars poetica": 10,
66
+ "sestina": 3,
67
+ "villanelle": 1,
68
+ "pantoum": 1
69
+ },
70
+ "kept_labels": [
71
+ [
72
+ "sonnet",
73
+ 585
74
+ ],
75
+ [
76
+ "couplet",
77
+ 275
78
+ ],
79
+ [
80
+ "common measure",
81
+ 69
82
+ ],
83
+ [
84
+ "ballad",
85
+ 63
86
+ ],
87
+ [
88
+ "elegy",
89
+ 61
90
+ ],
91
+ [
92
+ "free verse",
93
+ 49
94
+ ],
95
+ [
96
+ "blank verse",
97
+ 43
98
+ ],
99
+ [
100
+ "ode",
101
+ 42
102
+ ],
103
+ [
104
+ "dramatic monologue",
105
+ 41
106
+ ],
107
+ [
108
+ "prose poem",
109
+ 38
110
+ ],
111
+ [
112
+ "pastoral",
113
+ 36
114
+ ],
115
+ [
116
+ "haiku",
117
+ 16
118
+ ],
119
+ [
120
+ "quatrain",
121
+ 13
122
+ ],
123
+ [
124
+ "ekphrasis",
125
+ 10
126
+ ],
127
+ [
128
+ "ars poetica",
129
+ 10
130
+ ]
131
+ ]
132
+ },
133
+ "split": {
134
+ "method": "stratified-by-form",
135
+ "train_ratio": 0.8,
136
+ "seed": 42,
137
+ "sizes": {
138
+ "train": 1080,
139
+ "test": 271
140
+ }
141
+ },
142
+ "labels": {
143
+ "names": [
144
+ "sonnet",
145
+ "couplet",
146
+ "common measure",
147
+ "ballad",
148
+ "elegy",
149
+ "free verse",
150
+ "blank verse",
151
+ "ode",
152
+ "dramatic monologue",
153
+ "prose poem",
154
+ "pastoral",
155
+ "haiku",
156
+ "quatrain",
157
+ "ekphrasis",
158
+ "ars poetica"
159
+ ],
160
+ "name2id": {
161
+ "sonnet": 0,
162
+ "couplet": 1,
163
+ "common measure": 2,
164
+ "ballad": 3,
165
+ "elegy": 4,
166
+ "free verse": 5,
167
+ "blank verse": 6,
168
+ "ode": 7,
169
+ "dramatic monologue": 8,
170
+ "prose poem": 9,
171
+ "pastoral": 10,
172
+ "haiku": 11,
173
+ "quatrain": 12,
174
+ "ekphrasis": 13,
175
+ "ars poetica": 14
176
+ },
177
+ "counts": {
178
+ "sonnet": 585,
179
+ "couplet": 275,
180
+ "common measure": 69,
181
+ "ballad": 63,
182
+ "elegy": 61,
183
+ "free verse": 49,
184
+ "blank verse": 43,
185
+ "ode": 42,
186
+ "dramatic monologue": 41,
187
+ "prose poem": 38,
188
+ "pastoral": 36,
189
+ "haiku": 16,
190
+ "quatrain": 13,
191
+ "ekphrasis": 10,
192
+ "ars poetica": 10
193
+ },
194
+ "n_classes": 15,
195
+ "gloss": {
196
+ "sonnet": "Sonnet (十四行)",
197
+ "couplet": "Couplet (对句)",
198
+ "common measure": "Common measure (通用格)",
199
+ "ballad": "Ballad (民谣体)",
200
+ "elegy": "Elegy (挽歌)",
201
+ "free verse": "Free verse (自由诗)",
202
+ "blank verse": "Blank verse (无韵诗)",
203
+ "ode": "Ode (颂歌)",
204
+ "dramatic monologue": "Dramatic monologue (戏剧独白)",
205
+ "prose poem": "Prose poem (散文诗)",
206
+ "pastoral": "Pastoral (牧歌)",
207
+ "haiku": "Haiku (俳句)",
208
+ "quatrain": "Quatrain (四行)",
209
+ "ekphrasis": "Ekphrasis (艺格敷词)",
210
+ "ars poetica": "Ars poetica (诗艺)"
211
+ },
212
+ "split_counts": {
213
+ "train": {
214
+ "couplet": 220,
215
+ "ekphrasis": 8,
216
+ "dramatic monologue": 33,
217
+ "ballad": 50,
218
+ "sonnet": 468,
219
+ "quatrain": 10,
220
+ "elegy": 49,
221
+ "blank verse": 34,
222
+ "pastoral": 29,
223
+ "ode": 34,
224
+ "prose poem": 30,
225
+ "free verse": 39,
226
+ "common measure": 55,
227
+ "haiku": 13,
228
+ "ars poetica": 8
229
+ },
230
+ "test": {
231
+ "sonnet": 117,
232
+ "common measure": 14,
233
+ "ekphrasis": 2,
234
+ "couplet": 55,
235
+ "blank verse": 9,
236
+ "ars poetica": 2,
237
+ "pastoral": 7,
238
+ "ballad": 13,
239
+ "dramatic monologue": 8,
240
+ "ode": 8,
241
+ "elegy": 12,
242
+ "free verse": 10,
243
+ "haiku": 3,
244
+ "prose poem": 8,
245
+ "quatrain": 3
246
+ }
247
+ }
248
+ }
249
+ }
metadata.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "EnglishPoetryFormClassification",
3
+ "pretty_name": "English Poetry Form Classification",
4
+ "poetrymteb_repo": "PoetryMTEB/EnglishPoetryFormClassification",
5
+ "version": "1.0.0",
6
+ "task": "multi-class-classification",
7
+ "language": [
8
+ "en"
9
+ ],
10
+ "n_classes": 15,
11
+ "n_examples": 1351,
12
+ "splits": {
13
+ "train": 1080,
14
+ "test": 271
15
+ },
16
+ "has_validation": false,
17
+ "unit": "poem",
18
+ "label_field": "label",
19
+ "text_field": "poem",
20
+ "source": {
21
+ "github": "https://github.com/riazhsks/multilingual-annotated-poems"
22
+ },
23
+ "license": "cc-by-sa-4.0",
24
+ "metrics": [
25
+ "accuracy",
26
+ "macro_f1",
27
+ "weighted_f1"
28
+ ],
29
+ "note": "English poetic form classification from gold form labels"
30
+ }