1602353775wzj commited on
Commit
af073bc
·
verified ·
1 Parent(s): ea8335a

Add SahittoCategoryClassification (11 Bangla poem categories; CC BY 4.0)

Browse files
README.md CHANGED
@@ -1,3 +1,169 @@
1
- ---
2
- license: cc-by-nc-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - text-classification
5
+ task_ids:
6
+ - multi-class-classification
7
+ language:
8
+ - bn
9
+ multilinguality:
10
+ - monolingual
11
+ size_categories:
12
+ - 1K<n<10K
13
+ pretty_name: SahittoCategoryClassification
14
+ tags:
15
+ - poetry
16
+ - bangla
17
+ - bengali
18
+ - genre-classification
19
+ - theme-classification
20
+ - text-classification
21
+ - mteb
22
+ - poetrymteb
23
+ - embedding-evaluation
24
+ annotations_creators:
25
+ - expert-generated
26
+ source_datasets:
27
+ - bangla-poem-dataset-sahitto
28
+ configs:
29
+ - config_name: default
30
+ data_files:
31
+ - split: train
32
+ path: data/train-*
33
+ - split: validation
34
+ path: data/validation-*
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: title
44
+ dtype: string
45
+ - name: author
46
+ dtype: string
47
+ - name: poem
48
+ dtype: string
49
+ - name: label
50
+ dtype: int64
51
+ - name: label_name
52
+ dtype: string
53
+ splits:
54
+ - name: train
55
+ num_examples: 1763
56
+ - name: validation
57
+ num_examples: 222
58
+ - name: test
59
+ num_examples: 222
60
+ ---
61
+
62
+ # SahittoCategoryClassification
63
+
64
+ Single-label **Bangla poem category / genre classification** for PoetryMTEB embedding evaluation, derived from the **Bangla Poem Dataset (SAHITTO)**.
65
+
66
+ ## Dataset Card
67
+
68
+ | Item | Description |
69
+ |------|-------------|
70
+ | **Source** | [Bangla Poem Dataset (Mendeley)](https://data.mendeley.com/datasets/zgmrk5m566/2), DOI [10.17632/zgmrk5m566.2](https://doi.org/10.17632/zgmrk5m566.2); poems collected from [banglarkobita.com](https://banglarkobita.com/) |
71
+ | **Languages** | Bangla / Bengali (`bn`) |
72
+ | **Size** | train=1763; validation=222; test=222 |
73
+ | **Classes** | 11 poem categories (题材/主题) |
74
+ | **Splits** | Stratified by category ≈ 80% / 10% / 10% (`train` / `validation` / `test`), seed=42 |
75
+ | **License** | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) (same as upstream) |
76
+ | **Evaluation metrics** | Classification on embeddings: **accuracy**, **macro/weighted F1** |
77
+
78
+ ---
79
+
80
+ ## Features
81
+
82
+ | Field | Type | Description |
83
+ |-------|------|-------------|
84
+ | `id` | string | Example id |
85
+ | `title` | string | Poem title |
86
+ | `author` | string | Writer name (Bangla) |
87
+ | `poem` | string | Poem body |
88
+ | `label` | int64 | Category index (0 … C−1) |
89
+ | `label_name` | string | Category name in English (upstream `label`) |
90
+
91
+ Codebook: `label_taxonomy.json`.
92
+
93
+ ### Categories
94
+
95
+ | id | label_name | Bangla | count |
96
+ |---:|------------|--------|------:|
97
+ | 0 | Miscellaneous | বিবিধ কবিতা | 811 |
98
+ | 1 | Love | প্রেমের কবিতা | 500 |
99
+ | 2 | Metaphor | রূপক কবিতা | 316 |
100
+ | 3 | Separation | বিরহের কবিতা | 131 |
101
+ | 4 | Humanity | মানবতাবাদী কবিতা | 79 |
102
+ | 5 | Children | ছোটদের ছড়া-কবিতা | 78 |
103
+ | 6 | Patriotic | দেশাত্মবোধক কবিতা | 76 |
104
+ | 7 | Policy | নীতি কবিতা | 67 |
105
+ | 8 | Religious | ধর্মীয় কবিতা | 62 |
106
+ | 9 | Nature | প্রকৃতির কবিতা | 55 |
107
+ | 10 | War | যুদ্ধের কবিতা | 32 |
108
+
109
+ ---
110
+
111
+ ## Construction method
112
+
113
+ 1. Load `SAHITTO.ods` (sheet `Poems`: `title`, `poem`, `writer`, `label`).
114
+ 2. Keep all 11 category labels; map to contiguous `label` ids (frequency-descending).
115
+ 3. Stratified train / validation / test split by category.
116
+
117
+ ---
118
+
119
+ ## How to load
120
+
121
+ ```python
122
+ from datasets import load_dataset
123
+
124
+ ds = load_dataset("PoetryMTEB/SahittoCategoryClassification")
125
+ print(ds["test"][0]["label_name"], ds["test"][0]["title"])
126
+ ```
127
+
128
+ For embedding evaluation, encode `poem` (optionally prepend `title`), fit a classifier on `train`, optionally tune on `validation`, score on `test`.
129
+
130
+ ---
131
+
132
+ ## License
133
+
134
+ Distributed under **Creative Commons Attribution 4.0 International (CC BY 4.0)**, consistent with the upstream Mendeley release.
135
+
136
+ ---
137
+
138
+ ## Citation / provenance
139
+
140
+ Please cite the Bangla poem genre classification paper and the Mendeley dataset:
141
+
142
+ ```bibtex
143
+ @INPROCEEDINGS{10174592,
144
+ author={Pasha, Syed Tangim and Islam, Ashraful and Rahman, Mohammed Masudur and Ahmed, Eshtiak and Ahmed Foysal, Md. Ferdouse and Zahangir Alam, Md},
145
+ booktitle={2023 IEEE World AI IoT Congress (AIIoT)},
146
+ title={Genre Classification of Bangla Poem Using Machine Learning and Deep Learning Techniques},
147
+ year={2023},
148
+ pages={0236-0242},
149
+ doi={10.1109/AIIoT58121.2023.10174592}
150
+ }
151
+ ```
152
+
153
+ Dataset citation:
154
+
155
+ ```bibtex
156
+ @misc{pasha2022banglapoem,
157
+ author = {Pasha, Syed Tangim},
158
+ title = {Bangla Poem Dataset},
159
+ year = {2022},
160
+ publisher = {Mendeley Data},
161
+ version = {V2},
162
+ doi = {10.17632/zgmrk5m566.2},
163
+ url = {https://data.mendeley.com/datasets/zgmrk5m566/2}
164
+ }
165
+ ```
166
+
167
+ - Mendeley: [https://data.mendeley.com/datasets/zgmrk5m566/2](https://data.mendeley.com/datasets/zgmrk5m566/2)
168
+ - Paper: [https://doi.org/10.1109/AIIoT58121.2023.10174592](https://doi.org/10.1109/AIIoT58121.2023.10174592)
169
+ - This Hub packaging: `PoetryMTEB/SahittoCategoryClassification`
data/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7727488c48437342359e778c4a91dd045529741458e727a545d396efcc0efd4
3
+ size 255571
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34f201daf603042be2c76aaaad33a2dac0184fcd147416bfa36c4989261adde8
3
+ size 1869930
data/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:106c2454b53c62c2b5842db49fecc5ea8837713a437883d180fff54c422b174c
3
+ size 230041
dataset_infos.yaml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ configs:
2
+ - config_name: default
3
+ data_files:
4
+ - path: data/train-*.parquet
5
+ split: train
6
+ - path: data/validation-*.parquet
7
+ split: validation
8
+ - path: data/test-*.parquet
9
+ split: test
10
+ default: true
11
+ dataset_info:
12
+ configs:
13
+ - config_name: default
14
+ dataset_size: 2355542
15
+ download_size: 2355542
16
+ features:
17
+ - dtype: string
18
+ name: id
19
+ - dtype: string
20
+ name: title
21
+ - dtype: string
22
+ name: author
23
+ - dtype: string
24
+ name: poem
25
+ - dtype: int64
26
+ name: label
27
+ - dtype: string
28
+ name: label_name
29
+ splits:
30
+ - name: train
31
+ num_bytes: 1869930
32
+ num_examples: 1763
33
+ - name: validation
34
+ num_bytes: 230041
35
+ num_examples: 222
36
+ - name: test
37
+ num_bytes: 255571
38
+ num_examples: 222
label_taxonomy.json ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "description": "Category codebook for SahittoCategoryClassification",
3
+ "source_ods": "d:\\知识图谱\\世界诗歌\\Datasets\\Bangla Poem Dataset\\Bangla Poem Dataset\\SAHITTO.ods",
4
+ "mendeley": "https://data.mendeley.com/datasets/zgmrk5m566/2",
5
+ "doi": "10.17632/zgmrk5m566.2",
6
+ "split": {
7
+ "method": "stratified-by-category",
8
+ "ratios": [
9
+ 0.8,
10
+ 0.1,
11
+ 0.1
12
+ ],
13
+ "seed": 42,
14
+ "sizes": {
15
+ "train": 1763,
16
+ "validation": 222,
17
+ "test": 222
18
+ }
19
+ },
20
+ "labels": {
21
+ "names": [
22
+ "Miscellaneous",
23
+ "Love",
24
+ "Metaphor",
25
+ "Separation",
26
+ "Humanity",
27
+ "Children",
28
+ "Patriotic",
29
+ "Policy",
30
+ "Religious",
31
+ "Nature",
32
+ "War"
33
+ ],
34
+ "name2id": {
35
+ "Miscellaneous": 0,
36
+ "Love": 1,
37
+ "Metaphor": 2,
38
+ "Separation": 3,
39
+ "Humanity": 4,
40
+ "Children": 5,
41
+ "Patriotic": 6,
42
+ "Policy": 7,
43
+ "Religious": 8,
44
+ "Nature": 9,
45
+ "War": 10
46
+ },
47
+ "id2name": {
48
+ "0": "Miscellaneous",
49
+ "1": "Love",
50
+ "2": "Metaphor",
51
+ "3": "Separation",
52
+ "4": "Humanity",
53
+ "5": "Children",
54
+ "6": "Patriotic",
55
+ "7": "Policy",
56
+ "8": "Religious",
57
+ "9": "Nature",
58
+ "10": "War"
59
+ },
60
+ "counts": {
61
+ "Miscellaneous": 811,
62
+ "Love": 500,
63
+ "Metaphor": 316,
64
+ "Separation": 131,
65
+ "Humanity": 79,
66
+ "Children": 78,
67
+ "Patriotic": 76,
68
+ "Policy": 67,
69
+ "Religious": 62,
70
+ "Nature": 55,
71
+ "War": 32
72
+ },
73
+ "bangla_names": {
74
+ "Miscellaneous": "বিবিধ কবিতা",
75
+ "Love": "প্রেমের কবিতা",
76
+ "Metaphor": "রূপক কবিতা",
77
+ "Separation": "বিরহের কবিতা",
78
+ "Humanity": "মানবতাবাদী কবিতা",
79
+ "Children": "ছোটদের ছড়া-কবিতা",
80
+ "Patriotic": "দেশাত্মবোধক কবিতা",
81
+ "Policy": "নীতি কবিতা",
82
+ "Religious": "ধর্মীয় কবিতা",
83
+ "Nature": "প্রকৃতির কবিতা",
84
+ "War": "যুদ্ধের কবিতা"
85
+ },
86
+ "n_classes": 11
87
+ }
88
+ }