1602353775wzj commited on
Commit
4ed3fa6
·
verified ·
1 Parent(s): 5b06800

Add MultilingualPoetryMeterClassification v1.0.0 (7 meters, EN/DE/ES/CS, lang-capped; 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{multilingualpoetrymeterclassification_poetrymteb,
11
+ title = {Multilingual Poetry Meter Classification (PoetryMTEB packaging)},
12
+ author = {PoetryMTEB},
13
+ year = {2026},
14
+ howpublished = {Hugging Face Datasets},
15
+ url = {https://huggingface.co/datasets/PoetryMTEB/MultilingualPoetryMeterClassification},
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: "Multilingual Poetry Meter 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/MultilingualPoetryMeterClassification"
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,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - de
10
+ - es
11
+ - cs
12
+ multilinguality:
13
+ - multilingual
14
+ size_categories:
15
+ - 10K<n<100K
16
+ pretty_name: Multilingual Poetry Meter Classification
17
+ tags:
18
+ - poetry
19
+ - meter-classification
20
+ - prosody
21
+ - multilingual
22
+ - text-classification
23
+ - mteb
24
+ - poetrymteb
25
+ - embedding-evaluation
26
+ annotations_creators:
27
+ - found
28
+ source_datasets:
29
+ - riazhsks/multilingual-annotated-poems
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: poem
44
+ dtype: string
45
+ - name: title
46
+ dtype: string
47
+ - name: author
48
+ dtype: string
49
+ - name: language
50
+ dtype: string
51
+ - name: label
52
+ dtype: int64
53
+ - name: label_name
54
+ dtype: string
55
+ splits:
56
+ - name: train
57
+ num_examples: 24464
58
+ - name: test
59
+ num_examples: 6114
60
+ ---
61
+
62
+ # Multilingual Poetry Meter Classification
63
+
64
+ Multilingual **metrical foot classification** for PoetryMTEB embedding evaluation, built from EN/DE/ES/CS corpora with full text in [multilingual-annotated-poems](https://github.com/riazhsks/multilingual-annotated-poems).
65
+
66
+ Hungarian and modern Czech (C3P) standalone annotation files are excluded (no poem text in-repo).
67
+
68
+ ## Dataset Card
69
+
70
+ | Item | Description |
71
+ |------|-------------|
72
+ | **Source** | [https://github.com/riazhsks/multilingual-annotated-poems](https://github.com/riazhsks/multilingual-annotated-poems) English / German / Spanish / CCV JSONL |
73
+ | **Languages** | `en`, `de`, `es`, `cs` |
74
+ | **Size** | train=24464; test=6114 (no validation) |
75
+ | **Classes** | 7 meters with frequency ≥ 10 (after per-language cap) |
76
+ | **Filtering** | Valid `metrical_foot`; drop noisy tags (`s`/`c`/`single`/…); length ∈ [40, 8000]; ≤10000 poems / language (stratified by meter) |
77
+ | **Splits** | Stratified by `language×meter` ≈ 80% / 19%, seed=42 |
78
+ | **License** | [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) |
79
+ | **Dataset version** | `1.0.0` |
80
+ | **Evaluation metrics** | **accuracy**, **macro/weighted F1** |
81
+
82
+ ## Features
83
+
84
+ | Field | Type | Description |
85
+ |-------|------|-------------|
86
+ | `id` | string | Example id |
87
+ | `poem` | string | Poem text |
88
+ | `title` | string | Title |
89
+ | `author` | string | Author |
90
+ | `language` | string | `en` / `de` / `es` / `cs` |
91
+ | `label` | int64 | Meter class index |
92
+ | `label_name` | string | Metrical foot (e.g. `iambic`) |
93
+
94
+ ### Language distribution
95
+
96
+ | language | train | test | total |
97
+ |----------|------:|-----:|------:|
98
+ | `en` | 1067 | 267 | 1334 |
99
+ | `de` | 7995 | 1998 | 9993 |
100
+ | `es` | 7402 | 1849 | 9251 |
101
+ | `cs` | 8000 | 2000 | 10000 |
102
+
103
+ ### Label inventory (kept)
104
+
105
+ | id | label_name | gloss | train | test | total |
106
+ |---:|------------|-------|------:|-----:|------:|
107
+ | 0 | `iambic` | Iambic (抑扬格) | 14785 | 3696 | 18481 |
108
+ | 1 | `trochaic` | Trochaic (扬抑格) | 4375 | 1094 | 5469 |
109
+ | 2 | `polymetric` | Polymetric / mixed (多格律) | 4326 | 1081 | 5407 |
110
+ | 3 | `dactylic` | Dactylic (扬抑抑格) | 514 | 127 | 641 |
111
+ | 4 | `anapestic` | Anapestic (抑抑扬格) | 317 | 79 | 396 |
112
+ | 5 | `amphibrachic` | Amphibrachic (抑扬抑格) | 136 | 34 | 170 |
113
+ | 6 | `hexameter` | Hexameter (六音步) | 11 | 3 | 14 |
114
+
115
+ ### Dropped / unused meters (examples)
116
+
117
+ | meter | count |
118
+ |-------|------:|
119
+ | sapphicusminor | 2 |
120
+ | prosodiakos | 2 |
121
+ | pherekrateus | 1 |
122
+ | elegiambus | 1 |
123
+ | glykoneus | 1 |
124
+
125
+ ## Construction method
126
+
127
+ 1. Load EN/DE/ES/CCV JSONL with `text` + `metrical_foot`.
128
+ 2. Normalize meters; drop invalid/noisy tags; length-filter.
129
+ 3. Cap each language at 10000 (stratified by meter) for balance.
130
+ 4. Keep meters with ≥ 10 examples; assign frequency-descending ids.
131
+ 5. Stratified train/test by language×meter.
132
+
133
+ ## How to load
134
+
135
+ ```python
136
+ from datasets import load_dataset
137
+
138
+ ds = load_dataset("PoetryMTEB/MultilingualPoetryMeterClassification")
139
+ print(ds["test"][0]["language"], ds["test"][0]["label_name"])
140
+ ```
141
+
142
+ ## Citation
143
+
144
+ ```bibtex
145
+ @misc{riazhsks_multilingual_annotated_poems,
146
+ title={Multilingual Annotated Poems},
147
+ author={riazhsks},
148
+ year={2025},
149
+ url={https://github.com/riazhsks/multilingual-annotated-poems}
150
+ }
151
+ ```
152
+
153
+ Also cite the upstream corpora used in that repository (CCV, DLK, Spanish sonnet corpora, poetry-eval) as appropriate.
154
+
155
+ Hub packaging: `PoetryMTEB/MultilingualPoetryMeterClassification` (v1.0.0).
VERSION ADDED
@@ -0,0 +1 @@
 
 
1
+ 1.0.0
checksums.sha256 ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ e9f1c418a007b3f0e25b34ccd442cca6b2c9ce772e35cfdc887412a793670d91 CITATION.bib
2
+ 0629691d49347013bb604302b1cf0a3e1c75ce2dd24d3de6496c46b2badf339c CITATION.cff
3
+ 26d7ddf0d9c45a2b35dd03987ce3206e953bb4068e7646549e157884e783f386 data/test-00000-of-00001.parquet
4
+ 9ff572a9a33b8e8739afc11691b14561e1e6fba7e669060c9688f84e5a08fc56 data/train-00000-of-00001.parquet
5
+ 5650dfc097755512021487e4c6d868d12a05ed8486d6cfa6808efea78c5b4917 dataset_infos.yaml
6
+ 4a96a1fbd41c1e3419f7e18874c61a3ce9b4f15f0b83a1960ffbb57d59636ca8 label_taxonomy.json
7
+ 6a7b381325060368e7c1370f6daad24d406bad9f167c1c3a30ed2bd3b816f94a LICENSE
8
+ da4b9d4fde8892b1c613a5fbf5a0e41c7196d6b456de28441faf518ae71c0b54 metadata.json
9
+ b045882f67ac210a36ae27d7ebebbec15d716dd28480d1cda6a4e34438f1831d README.md
10
+ 707b16b86dc43415f0ada701a6b1add03b0b903ee45ceedbef3c1311dddc1ac9 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:26d7ddf0d9c45a2b35dd03987ce3206e953bb4068e7646549e157884e783f386
3
+ size 3994169
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ff572a9a33b8e8739afc11691b14561e1e6fba7e669060c9688f84e5a08fc56
3
+ size 15740752
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: 19734921
13
+ download_size: 19734921
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: string
24
+ name: language
25
+ - dtype: int64
26
+ name: label
27
+ - dtype: string
28
+ name: label_name
29
+ splits:
30
+ - name: train
31
+ num_bytes: 15740752
32
+ num_examples: 24464
33
+ - name: test
34
+ num_bytes: 3994169
35
+ num_examples: 6114
label_taxonomy.json ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "description": "Meter codebook for MultilingualPoetryMeterClassification",
3
+ "source": "https://github.com/riazhsks/multilingual-annotated-poems",
4
+ "min_count": 10,
5
+ "filtering": {
6
+ "n_raw": 146464,
7
+ "n_after_filters_before_cap": 137047,
8
+ "n_after_lang_cap": 30585,
9
+ "n_kept": 30578,
10
+ "n_no_text": 0,
11
+ "n_bad_meter": 7204,
12
+ "n_length_filtered": 2213,
13
+ "n_rare_label_rows": 7,
14
+ "min_count": 10,
15
+ "max_chars": 8000,
16
+ "min_chars": 40,
17
+ "max_per_lang": 10000,
18
+ "dropped_labels": [
19
+ [
20
+ "sapphicusminor",
21
+ 2
22
+ ],
23
+ [
24
+ "prosodiakos",
25
+ 2
26
+ ],
27
+ [
28
+ "pherekrateus",
29
+ 1
30
+ ],
31
+ [
32
+ "elegiambus",
33
+ 1
34
+ ],
35
+ [
36
+ "glykoneus",
37
+ 1
38
+ ]
39
+ ],
40
+ "pre_cap_meter_counts": {
41
+ "iambic": 83669,
42
+ "trochaic": 33906,
43
+ "polymetric": 14346,
44
+ "dactylic": 3613,
45
+ "amphibrachic": 932,
46
+ "anapestic": 454,
47
+ "hexameter": 92,
48
+ "prosodiakos": 14,
49
+ "sapphicusminor": 10,
50
+ "glykoneus": 5,
51
+ "pherekrateus": 5,
52
+ "elegiambus": 1
53
+ },
54
+ "languages": [
55
+ "en",
56
+ "de",
57
+ "es",
58
+ "cs"
59
+ ]
60
+ },
61
+ "split": {
62
+ "method": "stratified-by-language-x-meter",
63
+ "train_ratio": 0.8,
64
+ "seed": 42,
65
+ "sizes": {
66
+ "train": 24464,
67
+ "test": 6114
68
+ }
69
+ },
70
+ "labels": {
71
+ "names": [
72
+ "iambic",
73
+ "trochaic",
74
+ "polymetric",
75
+ "dactylic",
76
+ "anapestic",
77
+ "amphibrachic",
78
+ "hexameter"
79
+ ],
80
+ "name2id": {
81
+ "iambic": 0,
82
+ "trochaic": 1,
83
+ "polymetric": 2,
84
+ "dactylic": 3,
85
+ "anapestic": 4,
86
+ "amphibrachic": 5,
87
+ "hexameter": 6
88
+ },
89
+ "counts": {
90
+ "iambic": 18481,
91
+ "trochaic": 5469,
92
+ "polymetric": 5407,
93
+ "dactylic": 641,
94
+ "anapestic": 396,
95
+ "amphibrachic": 170,
96
+ "hexameter": 14
97
+ },
98
+ "n_classes": 7,
99
+ "lang_counts": {
100
+ "de": 9993,
101
+ "es": 9251,
102
+ "cs": 10000,
103
+ "en": 1334
104
+ },
105
+ "gloss": {
106
+ "iambic": "Iambic (抑扬格)",
107
+ "trochaic": "Trochaic (扬抑格)",
108
+ "polymetric": "Polymetric / mixed (多格律)",
109
+ "dactylic": "Dactylic (扬抑抑格)",
110
+ "anapestic": "Anapestic (抑抑扬格)",
111
+ "amphibrachic": "Amphibrachic (抑扬抑格)",
112
+ "hexameter": "Hexameter (六音步)"
113
+ },
114
+ "split_counts": {
115
+ "train": {
116
+ "polymetric": 4326,
117
+ "iambic": 14785,
118
+ "trochaic": 4375,
119
+ "anapestic": 317,
120
+ "dactylic": 514,
121
+ "amphibrachic": 136,
122
+ "hexameter": 11
123
+ },
124
+ "test": {
125
+ "iambic": 3696,
126
+ "trochaic": 1094,
127
+ "polymetric": 1081,
128
+ "anapestic": 79,
129
+ "dactylic": 127,
130
+ "amphibrachic": 34,
131
+ "hexameter": 3
132
+ }
133
+ },
134
+ "language_split_counts": {
135
+ "train": {
136
+ "es": 7402,
137
+ "cs": 8000,
138
+ "de": 7995,
139
+ "en": 1067
140
+ },
141
+ "test": {
142
+ "es": 1849,
143
+ "de": 1998,
144
+ "cs": 2000,
145
+ "en": 267
146
+ },
147
+ "all": {
148
+ "de": 9993,
149
+ "es": 9251,
150
+ "cs": 10000,
151
+ "en": 1334
152
+ }
153
+ }
154
+ }
155
+ }
metadata.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "MultilingualPoetryMeterClassification",
3
+ "pretty_name": "Multilingual Poetry Meter Classification",
4
+ "poetrymteb_repo": "PoetryMTEB/MultilingualPoetryMeterClassification",
5
+ "version": "1.0.0",
6
+ "task": "multi-class-classification",
7
+ "language": [
8
+ "en",
9
+ "de",
10
+ "es",
11
+ "cs"
12
+ ],
13
+ "n_classes": 7,
14
+ "n_examples": 30578,
15
+ "splits": {
16
+ "train": 24464,
17
+ "test": 6114
18
+ },
19
+ "has_validation": false,
20
+ "unit": "poem",
21
+ "label_field": "label",
22
+ "text_field": "poem",
23
+ "source": {
24
+ "github": "https://github.com/riazhsks/multilingual-annotated-poems"
25
+ },
26
+ "license": "cc-by-sa-4.0",
27
+ "metrics": [
28
+ "accuracy",
29
+ "macro_f1",
30
+ "weighted_f1"
31
+ ],
32
+ "note": "Multilingual metrical foot classification (EN/DE/ES/CS)"
33
+ }