Datasets:
image imagewidth (px) 1.15k 3.44k | image_id stringlengths 11 17 | book_id stringclasses 44
values | width int32 1.15k 3.44k | height int32 1.93k 5.29k | objects dict | columns dict | segments dict |
|---|---|---|---|---|---|---|---|
100241706_00005_1 | 100241706 | 2,392 | 3,874 | {
"bbox": [
[
2051,
945,
121,
117
],
[
2009,
1162,
163,
157
],
[
2059,
1360,
55,
80
],
[
2017,
1520,
124,
169
],
[
2036,
1722,
65,
76
],
[
1995,
... | {
"bbox": [
[
1995,
945,
193,
2639
],
[
1669,
939,
184,
2619
],
[
1364,
941,
211,
2559
],
[
1040,
935,
219,
2593
],
[
724,
951,
187,
2533
],
[
381,
... | {
"bbox": [
[
381,
935,
1807,
2649
]
],
"segment_id": [
"SEG0001"
],
"column_ids": [
[
"COL0001",
"COL0002",
"COL0003",
"COL0004",
"COL0005",
"COL0006"
]
]
} | |
100241706_00005_2 | 100241706 | 2,416 | 3,874 | {
"bbox": [
[
1799,
956,
164,
156
],
[
1829,
1179,
160,
141
],
[
1820,
1370,
156,
175
],
[
1809,
1591,
176,
216
],
[
1817,
1860,
159,
155
],
[
1841,... | {
"bbox": [
[
1799,
956,
191,
2549
],
[
1501,
955,
205,
2556
],
[
1175,
947,
192,
2586
],
[
865,
957,
189,
2561
],
[
545,
956,
213,
2631
],
[
229,
... | {
"bbox": [
[
229,
947,
1761,
2648
]
],
"segment_id": [
"SEG0001"
],
"column_ids": [
[
"COL0001",
"COL0002",
"COL0003",
"COL0004",
"COL0005",
"COL0006"
]
]
} | |
100241706_00006_1 | 100241706 | 2,362 | 3,886 | {
"bbox": [
[
1957,
959,
151,
172
],
[
1957,
1203,
144,
145
],
[
1969,
1411,
151,
163
],
[
1982,
1634,
67,
200
],
[
1975,
1835,
113,
216
],
[
1935,
... | {
"bbox": [
[
1935,
959,
189,
2640
],
[
1623,
964,
198,
2589
],
[
1307,
947,
213,
2625
],
[
987,
931,
187,
2623
],
[
610,
939,
247,
2539
],
[
324,
... | {
"bbox": [
[
324,
931,
1800,
2668
]
],
"segment_id": [
"SEG0001"
],
"column_ids": [
[
"COL0001",
"COL0002",
"COL0003",
"COL0004",
"COL0005",
"COL0006"
]
]
} | |
100241706_00007_2 | 100241706 | 2,392 | 3,868 | {
"bbox": [
[
1831,
936,
168,
167
],
[
1861,
1124,
108,
167
],
[
1848,
1305,
127,
153
],
[
1848,
1479,
116,
145
],
[
1871,
1619,
120,
140
],
[
1856,... | {
"bbox": [
[
1831,
936,
188,
2502
],
[
1596,
1331,
191,
1567
],
[
1372,
932,
177,
440
],
[
1448,
1551,
117,
2033
],
[
1357,
1555,
99,
752
],
[
1143... | {
"bbox": [
[
1596,
936,
423,
2502
],
[
1372,
932,
177,
440
],
[
1357,
1551,
208,
2033
],
[
176,
925,
1113,
2684
]
],
"segment_id": [
"SEG0001",
"SEG0002",
"SEG0003",
"SE... | |
100241706_00008_1 | 100241706 | 2,350 | 3,874 | {
"bbox": [
[
2019,
968,
93,
99
],
[
2010,
1070,
123,
44
],
[
2025,
1128,
93,
140
],
[
2029,
1271,
91,
109
],
[
2023,
1382,
93,
105
],
[
2034,
... | {
"bbox": [
[
1997,
968,
151,
1710
],
[
1779,
978,
108,
819
],
[
1520,
928,
155,
2647
],
[
1276,
928,
155,
2207
],
[
1022,
929,
152,
2682
],
[
787,
... | {
"bbox": [
[
319,
928,
1829,
2683
]
],
"segment_id": [
"SEG0001"
],
"column_ids": [
[
"COL0001",
"COL0002",
"COL0003",
"COL0004",
"COL0005",
"COL0006",
"COL0007",
"COL0008"
]
]
} | |
100241706_00008_2 | 100241706 | 2,410 | 3,868 | {
"bbox": [
[
1887,
947,
96,
45
],
[
1889,
1032,
109,
144
],
[
1889,
1360,
107,
119
],
[
1923,
1480,
32,
89
],
[
1902,
1575,
49,
115
],
[
1891,
... | {
"bbox": [
[
1877,
947,
125,
1844
],
[
1626,
955,
167,
1836
],
[
1388,
943,
160,
2672
],
[
1156,
940,
139,
1189
],
[
914,
940,
139,
2352
],
[
670,
... | {
"bbox": [
[
183,
940,
1819,
2694
]
],
"segment_id": [
"SEG0001"
],
"column_ids": [
[
"COL0001",
"COL0002",
"COL0003",
"COL0004",
"COL0005",
"COL0006",
"COL0007",
"COL0008"
]
]
} | |
100241706_00009_1 | 100241706 | 2,362 | 3,880 | {
"bbox": [
[
2042,
976,
96,
103
],
[
2031,
1079,
89,
99
],
[
2053,
1188,
53,
123
],
[
2049,
1303,
93,
123
],
[
2051,
1429,
71,
100
],
[
2046,
... | {
"bbox": [
[
2013,
976,
138,
2650
],
[
1764,
983,
149,
2637
],
[
1539,
983,
144,
2637
],
[
1290,
980,
152,
2646
],
[
1038,
989,
155,
2629
],
[
796,... | {
"bbox": [
[
316,
976,
1835,
2650
]
],
"segment_id": [
"SEG0001"
],
"column_ids": [
[
"COL0001",
"COL0002",
"COL0003",
"COL0004",
"COL0005",
"COL0006",
"COL0007",
"COL0008"
]
]
} | |
100241706_00009_2 | 100241706 | 2,374 | 3,880 | {
"bbox": [
[
1881,
1003,
85,
156
],
[
1887,
1163,
92,
145
],
[
1897,
1309,
64,
155
],
[
1902,
1471,
51,
104
],
[
1874,
1576,
92,
108
],
[
1875,
... | {
"bbox": [
[
1874,
1003,
142,
2619
],
[
1639,
1000,
161,
2629
],
[
1386,
1000,
166,
2617
],
[
1158,
997,
133,
2612
],
[
915,
997,
154,
2616
],
[
67... | {
"bbox": [],
"segment_id": [],
"column_ids": []
} | |
100241706_00010_1 | 100241706 | 2,369 | 3,872 | {
"bbox": [
[
2049,
995,
101,
107
],
[
2060,
1104,
64,
121
],
[
1793,
943,
99,
53
],
[
1781,
1019,
141,
93
],
[
1794,
1119,
108,
160
],
[
1821,
... | {
"bbox": [
[
2049,
995,
101,
230
],
[
1753,
943,
169,
2664
],
[
1534,
1008,
138,
2591
],
[
1281,
997,
147,
2605
],
[
1051,
996,
130,
2614
],
[
811,... | {
"bbox": [],
"segment_id": [],
"column_ids": []
} | |
100241706_00010_2 | 100241706 | 2,380 | 3,868 | {
"bbox": [
[
1888,
999,
103,
137
],
[
1892,
1140,
85,
128
],
[
1899,
1272,
73,
128
],
[
1891,
1416,
99,
69
],
[
1879,
1517,
121,
129
],
[
1897,
... | {
"bbox": [
[
1869,
999,
131,
2604
],
[
1636,
991,
128,
2627
],
[
1381,
1011,
140,
2591
],
[
1149,
1005,
135,
2600
],
[
921,
1000,
117,
415
],
[
673... | {
"bbox": [],
"segment_id": [],
"column_ids": []
} | |
100241706_00011_1 | 100241706 | 2,350 | 3,867 | {
"bbox": [
[
2017,
916,
113,
52
],
[
1989,
1001,
181,
176
],
[
2027,
1179,
81,
71
],
[
2005,
1444,
119,
112
],
[
2005,
1577,
113,
157
],
[
2025,
... | {
"bbox": [
[
1989,
916,
181,
2667
],
[
1755,
989,
135,
1464
],
[
1511,
936,
137,
2639
],
[
1276,
984,
128,
1882
],
[
1023,
924,
156,
2617
],
[
786,... | {
"bbox": [],
"segment_id": [],
"column_ids": []
} | |
100241706_00011_2 | 100241706 | 2,386 | 3,874 | {
"bbox": [
[
1875,
975,
112,
157
],
[
1865,
1147,
120,
109
],
[
1878,
1276,
96,
79
],
[
1878,
1366,
95,
145
],
[
1867,
1512,
139,
120
],
[
1889,
... | {
"bbox": [
[
1847,
975,
159,
2650
],
[
1628,
986,
125,
2641
],
[
1378,
1003,
147,
2630
],
[
1142,
1002,
141,
2618
],
[
910,
987,
147,
2619
],
[
680... | {
"bbox": [],
"segment_id": [],
"column_ids": []
} | |
100241706_00012_1 | 100241706 | 2,344 | 3,862 | {
"bbox": [
[
2004,
990,
123,
159
],
[
2041,
1147,
99,
124
],
[
2064,
1275,
56,
196
],
[
2056,
1491,
43,
93
],
[
2036,
1586,
60,
119
],
[
2019,
... | {
"bbox": [
[
1997,
990,
143,
2627
],
[
1747,
998,
148,
2613
],
[
1523,
998,
147,
2608
],
[
1277,
991,
144,
2288
],
[
1035,
1278,
135,
1473
],
[
795... | {
"bbox": [],
"segment_id": [],
"column_ids": []
} | |
100241706_00012_2 | 100241706 | 2,398 | 3,874 | {
"bbox": [
[
1909,
992,
63,
148
],
[
1895,
1142,
96,
83
],
[
1879,
1254,
121,
133
],
[
1887,
1410,
99,
89
],
[
1894,
1548,
100,
121
],
[
1895,
... | {
"bbox": [
[
1879,
992,
133,
2590
],
[
1646,
995,
152,
2595
],
[
1412,
988,
139,
2599
],
[
1172,
991,
123,
509
],
[
936,
1196,
121,
1408
],
[
679,
... | {
"bbox": [],
"segment_id": [],
"column_ids": []
} | |
100241706_00013_1 | 100241706 | 2,338 | 3,868 | {
"bbox": [
[
2022,
1004,
91,
97
],
[
2002,
1103,
113,
100
],
[
1998,
1213,
155,
116
],
[
2007,
1357,
127,
172
],
[
2021,
1531,
77,
128
],
[
1995,
... | {
"bbox": [
[
1985,
1004,
168,
2616
],
[
1744,
993,
164,
2618
],
[
1518,
1003,
130,
2605
],
[
1270,
999,
141,
2612
],
[
1023,
992,
153,
2624
],
[
78... | {
"bbox": [],
"segment_id": [],
"column_ids": []
} | |
100241706_00013_2 | 100241706 | 2,374 | 3,874 | {
"bbox": [
[
1853,
980,
113,
221
],
[
1885,
1203,
45,
100
],
[
1877,
1330,
85,
84
],
[
1875,
1415,
71,
140
],
[
1869,
1556,
81,
129
],
[
1869,
... | {
"bbox": [
[
1851,
980,
131,
2628
],
[
1619,
1004,
141,
2609
],
[
1392,
990,
145,
2612
],
[
1135,
990,
160,
2252
],
[
884,
994,
161,
1358
],
[
654,... | {
"bbox": [],
"segment_id": [],
"column_ids": []
} | |
100241706_00014_1 | 100241706 | 2,350 | 3,874 | {
"bbox": [
[
2019,
983,
83,
143
],
[
1998,
1143,
109,
96
],
[
2005,
1274,
124,
189
],
[
2011,
1484,
88,
141
],
[
2023,
1628,
67,
143
],
[
2011,
... | {
"bbox": [
[
1993,
983,
145,
2611
],
[
1752,
996,
165,
2599
],
[
1511,
995,
166,
2125
],
[
1263,
936,
159,
602
],
[
1004,
984,
176,
2630
],
[
786,
... | {
"bbox": [],
"segment_id": [],
"column_ids": []
} | |
100241706_00014_2 | 100241706 | 2,398 | 3,880 | {
"bbox": [
[
1863,
993,
107,
179
],
[
1881,
1171,
88,
101
],
[
1905,
1273,
35,
91
],
[
1911,
1355,
24,
171
],
[
1874,
1548,
108,
156
],
[
1889,
... | {
"bbox": [
[
1863,
993,
138,
2614
],
[
1634,
999,
137,
2611
],
[
1395,
988,
166,
2622
],
[
1148,
1005,
141,
2613
],
[
916,
984,
127,
2616
],
[
672,... | {
"bbox": [],
"segment_id": [],
"column_ids": []
} | |
100241706_00015_1 | 100241706 | 2,380 | 3,904 | {
"bbox": [
[
2059,
969,
25,
167
],
[
2031,
1144,
101,
141
],
[
2015,
1288,
124,
156
],
[
2035,
1456,
57,
104
],
[
2017,
1589,
115,
156
],
[
2009,
... | {
"bbox": [
[
2009,
969,
142,
2615
],
[
1768,
977,
162,
2623
],
[
1541,
993,
136,
2615
],
[
1281,
984,
155,
1083
],
[
1041,
1004,
135,
2589
],
[
797... | {
"bbox": [],
"segment_id": [],
"column_ids": []
} |
Dataset Card for Kuzushiji Page Dataset
Dataset Summary
The Kuzushiji Page Dataset packages page images from Japanese historical books with
character-level bounding boxes and labels. When supplied during conversion, it also
includes reading-column and segment annotations for document-layout analysis. This
repository contains the COCO variant; bounding boxes use
[x_min, y_min, width, height] in pixels.
This card describes the generated repository Kotomiya07/kuzushiji-dataset-coco. Its statistics are calculated
at conversion time rather than copied from the upstream collection:
| Statistic | Value |
|---|---|
| Page images | 5,390 |
| Books | 44 |
| Character categories | 4,341 |
| Split | train only |
The source material is the 日本古典籍くずし字データセット (Japanese Historical Character Dataset), owned by the National Institute of Japanese Literature (NIJL) and other institutions and processed by the ROIS-DS Center for Open Data in the Humanities (CODH).
Supported Tasks and Leaderboards
- Character detection / Kuzushiji recognition: use
objects.bbox,category, andcategory_idto locate and classify cursive Japanese characters. - Document layout analysis: use the optional
columnsandsegmentsfields to detect reading columns and larger text regions. - OCR preprocessing and evaluation: use the page image, book identifier, Unicode labels, and layout hierarchy to construct recognition pipelines.
There is no official train/evaluation split, benchmark protocol, or leaderboard for this converted dataset. Users must define evaluation splits appropriate to their task.
Languages
The documents are in Japanese (ja), primarily historical written Japanese represented
in Kuzushiji. The metadata does not provide a verified language distribution by book,
period, script type, or genre.
Dataset Structure
Data Instances
from datasets import load_dataset
dataset = load_dataset("Kotomiya07/kuzushiji-dataset-coco")
example = dataset["train"][0]
print(example["image_id"], example["book_id"])
print(example["objects"]["bbox"][:3])
A record has the following shape (sequences may be empty):
{
"image": Image(),
"image_id": str,
"book_id": str,
"width": int,
"height": int,
"objects": {
"bbox": list[list[float]],
"category": list[str],
"category_id": list[int],
"is_pua": list[bool],
"pua_code": list[str],
"pua_reading": list[str],
"pua_memo": list[str],
"char": list[str],
},
"columns": {
"bbox": list[list[float]],
"column_id": list[str],
"char_ids": list[list[str]],
"segment_id": list[str],
},
"segments": {
"bbox": list[list[float]],
"segment_id": list[str],
"column_ids": list[list[str]],
},
}
Data Fields
| Field | Type | Description |
|---|---|---|
image |
Image |
Full page image. |
image_id |
string |
Source page identifier, without the image extension. |
book_id |
string |
Identifier of the source book. |
width, height |
int32 |
Page dimensions in pixels. |
objects.bbox |
sequence of 4 floats | Character boxes in the repository's declared bbox format. |
objects.category |
sequence of strings | Unicode labels such as U+3042; PUA labels are preserved. |
objects.category_id |
sequence of int32 |
Integer IDs defined by label2id.json. |
objects.is_pua |
sequence of booleans | Whether each label is in a Unicode Private Use Area. |
objects.pua_code |
sequence of strings | PUA code, or an empty string for a standard Unicode label. |
objects.pua_reading |
sequence of strings | Optional reading imported from PUA metadata. |
objects.pua_memo |
sequence of strings | Optional note imported from PUA metadata. |
objects.char |
sequence of strings | Character obtained from the Unicode code point. |
columns.bbox |
sequence of 4 floats | Union box of the characters assigned to a reading column. |
columns.column_id |
sequence of strings | Column identifiers such as COL0001. |
columns.char_ids |
sequence of string sequences | Character IDs belonging to each column. |
columns.segment_id |
sequence of strings | Parent segment ID, or an empty string when unavailable. |
segments.bbox |
sequence of 4 floats | Union box of columns/characters assigned to a segment. |
segments.segment_id |
sequence of strings | Segment identifiers such as SEG0001. |
segments.column_ids |
sequence of string sequences | Column IDs belonging to each segment. |
The parallel sequences within objects, columns, and segments are positionally
aligned. columns and segments can be empty when the corresponding optional annotation
files were not provided or a page was not annotated.
Data Splits
| Split | Number of rows |
|---|---|
| train | 5,390 |
No validation or test split is generated. To reduce leakage between pages from the same
work, create downstream splits by book_id, not by randomly splitting individual rows.
Bounding Box Formats
| Variant | Coordinates | Normalized |
|---|---|---|
| COCO | [x_min, y_min, width, height] |
No; pixel units |
| YOLO | [x_center, y_center, width, height] |
Yes; values in 0–1 |
All character, column, and segment boxes in this repository use the COCO variant. Do not infer the format from the values alone.
Label Mapping Files
label2id.json: Unicode label to category ID.id2label.json: category ID to Unicode label.pua_metadata.json: PUA code to reading and memo, only when metadata was available.
PUA (Private Use Area) Characters
Some annotations use PUA (Private Use Area) code points for glyphs without a standard
Unicode representation. The original code point is retained in category; the derived
fields is_pua, pua_code, pua_reading, and pua_memo make these records explicit.
Readings and notes are empty when no PUA metadata was supplied to the converter.
A notable example is the four-way distinction around the kōto ligature:
| Character / code | Variant | is_pua |
pua_reading |
|---|---|---|---|
ヿ (U+30FF) |
Katakana ヿ (standard Unicode) | false | — |
U+E009 |
Hiragana ヿ | true | こと (koto) |
U+E00A |
Hiragana ヿ with dakuten | true | ごと (goto) |
U+E00B |
Katakana ヿ with dakuten | true | ゴト (goto) |
Depending on the research question, users may merge these forms, preserve them as separate classes, or exclude them. This choice is not made by the dataset converter.
Dataset Creation
Curation Rationale
This conversion makes the upstream character coordinates directly usable with Hugging Face Datasets and preserves page/book provenance. Optional column and segment structures support layout-aware OCR and reading-order research without replacing the original character annotations.
Source Data
Initial Data Collection and Normalization
The converter reads each source page image and its coordinate CSV. It validates image availability, converts Unicode code points to display characters, assigns deterministic category IDs, and converts boxes to the selected COCO or YOLO representation. Boxes that extend beyond the page image are clamped to the image bounds, so every box in this repository lies within its page. Column and segment boxes are derived as unions of their member character boxes when matching local annotation CSV files are supplied. The images themselves are not resized by this step.
Upstream source:
- Dataset: 日本古典籍くずし字データセット
- Owners: National Institute of Japanese Literature and other institutions
- Processing: ROIS-DS Center for Open Data in the Humanities (CODH)
- DOI: 10.20676/00000340
- Website: codh.rois.ac.jp/char-shape
Who Are the Source Language Producers?
The text was produced by historical Japanese authors, scribes, printers, and publishers. Their identities and demographic attributes are not encoded in this converted dataset. The holding institutions and CODH provide and process the digitized source material.
Annotations
Annotation Process
Character labels and coordinates originate from the upstream dataset. The converter does not re-transcribe or independently verify them. Column annotations are optional local assignments of characters to reading columns. Segment annotations are optional derived or human-corrected groupings of columns. Their availability can therefore differ by book and page; empty sequences do not mean that the page contains no text.
Who Are the Annotators?
See the upstream dataset documentation for the provenance of character annotations. The converter does not store annotator identities for optional column/segment annotations, so their annotator composition and inter-annotator agreement cannot be determined from this repository alone.
Personal and Sensitive Information
Historical pages can contain personal names, addresses, ownership marks, or other information about historical individuals. No dedicated personal-information or sensitive- content audit is performed during conversion. Users should inspect the source material for their intended publication context and follow the policies of the holding institutions.
Considerations for Using the Data
Social Impact of the Dataset
The dataset can support preservation, search, transcription, and accessibility of historical Japanese materials. Automated recognition may also produce plausible but incorrect readings; outputs should not be treated as authoritative transcriptions without review, especially in historical, genealogical, or identity-related research.
Discussion of Biases
The collection reflects the books selected, preserved, digitized, and annotated by the source institutions rather than the full distribution of historical Japanese writing. Character frequencies, genres, periods, hands, print styles, page conditions, and institutions may be uneven. Rare characters and PUA labels are likely to be especially sparse. No demographic, geographic, genre, or performance fairness audit is included.
Other Known Limitations
- Only a
trainsplit is provided; reported row counts describe this generated revision. - Annotation completeness and accuracy are inherited from upstream data and optional local column/segment files; they are not independently audited by the converter.
- Categories can be highly imbalanced, and PUA semantics depend on optional metadata.
- Boxes are axis-aligned and cannot fully describe rotated, touching, damaged, or highly irregular glyphs and regions.
- Column and segment annotations may be absent or partially covered across books/pages.
category_idvalues are repository-specific; use the included mapping files rather than assuming IDs are stable across independently generated versions.- A random page-level split can leak book-specific visual characteristics; split by book for a stronger estimate of generalization.
Additional Information
Dataset Curators
The source collection is curated and processed by NIJL, other holding institutions, and
CODH. This Hugging Face packaging is generated by the kuzushiji-hf-converter project;
consult the repository history for the maintainers of a particular published revision.
Licensing Information
This generated dataset is distributed under CC BY-SA 4.0. Users remain responsible for checking the upstream dataset terms, providing attribution, indicating modifications, and applying ShareAlike requirements to adaptations. This card is descriptive and is not legal advice.
Citation Information
Please cite the source dataset:
『日本古典籍くずし字データセット』(国文研ほか所蔵/CODH加工)
doi:10.20676/00000340
"Japanese Historical Character Dataset"
(Owned by NIJL and others, Processed by CODH)
doi:10.20676/00000340
When publishing a derived dataset or model, also cite the exact Hugging Face repository
revision used (Kotomiya07/kuzushiji-dataset-coco) so that the generated schema and statistics are reproducible.
Contributions and Acknowledgments
Data is provided by the ROIS-DS Center for Open Data in the Humanities, the National Institute of Japanese Literature, and the other holding institutions credited by the upstream dataset.
- Downloads last month
- 457