Add dataset card

#1
by davanstrien HF Staff - opened
Files changed (1) hide show
  1. README.md +136 -0
README.md CHANGED
@@ -1,4 +1,20 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
  features:
4
  - name: image
@@ -40,3 +56,123 @@ configs:
40
  - split: train
41
  path: data/train-*
42
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - la
5
+ - fr
6
+ task_categories:
7
+ - object-detection
8
+ - image-segmentation
9
+ size_categories:
10
+ - n<1K
11
+ pretty_name: HORAE-LSv2 — Books of Hours layout
12
+ tags:
13
+ - glam
14
+ - manuscripts
15
+ - document-layout-analysis
16
+ - medieval
17
+ - iiif
18
  dataset_info:
19
  features:
20
  - name: image
 
56
  - split: train
57
  path: data/train-*
58
  ---
59
+
60
+ # HORAE-LSv2 — layout segmentation for Books of Hours
61
+
62
+ 555 annotated page images from 334 medieval and early-modern Books of Hours, manuscript and printed,
63
+ marked up for page layout analysis. Created by the HORAE project at the [Institut de Recherche et
64
+ d'Histoire des Textes](https://www.irht.cnrs.fr/) (IRHT-CNRS) with [Teklia](https://teklia.com/), and
65
+ deposited on Zenodo in August 2025 as HORAE-LSv2 ([10.5281/zenodo.16919911](https://doi.org/10.5281/zenodo.16919911)).
66
+
67
+ This repository is a format conversion of that deposit. Same images, same annotations, repackaged so
68
+ it loads with `datasets` instead of requiring four zip files and three text encodings.
69
+
70
+ ## Two annotation systems over the same pages
71
+
72
+ The deposit ships two independent markup schemes for the same 555 pages, and they do not map onto each
73
+ other. Both are carried here rather than picking one.
74
+
75
+ | Column | Scheme | Geometry | Count |
76
+ |---|---|---|---|
77
+ | `objects` | 14-class YOLO taxonomy | bounding boxes, COCO `[x, y, w, h]` in absolute pixels | 22,878 |
78
+ | `regions` | 7-type Arkindex taxonomy plus subclasses | polygons | 22,964 |
79
+
80
+ `regions` types and their subclasses:
81
+
82
+ | Type | Count | Subclasses |
83
+ |---|---|---|
84
+ | text_line | 13,879 | calendar |
85
+ | initial | 3,542 | simple_initial, decorated_initial, historiated_initial |
86
+ | decoration | 2,412 | line_filler, ornament, music_notation, decorated_border, illustrated_border |
87
+ | rubrication | 1,224 | red, blue, gold |
88
+ | text | 896 | border_text |
89
+ | single_page | 852 | calendar |
90
+ | miniature | 159 | — |
91
+
92
+ `text_line` is 60% of the polygon annotations. Filter it out if you are after decorative or structural
93
+ elements rather than lines.
94
+
95
+ ## Structure
96
+
97
+ | Field | Type | Notes |
98
+ |---|---|---|
99
+ | `image` | image | JPEG at maximum available IIIF resolution |
100
+ | `file_name` | string | source filename; institution and shelfmark are encoded in it |
101
+ | `width`, `height` | int32 | as declared upstream; verified to match the decoded image |
102
+ | `iiif_url` | string | the IIIF source URL, preserved for provenance |
103
+ | `objects` | list of struct | `bbox`, `category_id`, `category_name` |
104
+ | `regions` | list of struct | `polygon`, `type`, `class_name` |
105
+
106
+ ## Caveats
107
+
108
+ **Not every page is annotated.** 555 images, but only 545 carry YOLO labels and 542 carry polygon
109
+ regions. Roughly 13 pages have an image and nothing else. This is in the source deposit, not introduced
110
+ by the conversion. Filter on `len(objects) > 0` or `len(regions) > 0` before training.
111
+
112
+ **There are no splits.** The upstream README documents `metadata/train.csv`, `val.csv` and `test.csv`;
113
+ none of those files exist in the published archive, including in `extras.zip`. Everything is in a single
114
+ `train` split. Make your own splits — and group by manuscript, not by page, since 555 pages come from
115
+ only 334 books and pages from the same book are highly correlated.
116
+
117
+ **No transcriptions.** The upstream documentation describes `text_line` elements as carrying
118
+ transcription data. The published `elements.csv` has no transcription column, so none is present here.
119
+ This is a layout dataset only.
120
+
121
+ **Dating is unknown per item.** The deposit does not ship per-manuscript dates, so there is no date
122
+ field. "Medieval and early modern" is the collection-level description, not something you can filter on.
123
+
124
+ ### If you go back to the original deposit
125
+
126
+ The three annotation files are in three different text encodings, which is worth knowing before you
127
+ parse them yourself:
128
+
129
+ | File | Encoding |
130
+ |---|---|
131
+ | `extras/HORAE_LSv2.csv` | UTF-8 |
132
+ | `metadata/HORAE_LSv2_elements.csv` | latin-1 |
133
+ | `metadata/HORAE_LSv2_image_data.csv` | UTF-7 (`+AF8-` for `_`) |
134
+
135
+ Reading any of them as UTF-8 either raises or silently mangles every accented library name. The
136
+ conversion here decodes each with its own encoding.
137
+
138
+ The 2019 first release (HORAE_LS) referenced images by IIIF URL rather than shipping them; those URLs
139
+ rotted, which is why v2 exists with images included.
140
+
141
+ ## Load
142
+
143
+ ```python
144
+ from datasets import load_dataset
145
+
146
+ ds = load_dataset("davanstrien/horae-lsv2-layout", split="train")
147
+
148
+ # pages with decorative elements only — text_line is 60% of the polygons
149
+ decorated = ds.filter(
150
+ lambda r: any(x["type"] in {"miniature", "initial", "decoration"} for x in r["regions"])
151
+ )
152
+ ```
153
+
154
+ ## Licence
155
+
156
+ CC BY 4.0, following the upstream deposit. Attribution to the HORAE project creators, below.
157
+
158
+ Note that the source institutions holding the digitised manuscripts apply their own terms to the
159
+ underlying images; the Zenodo deposit is the layer licensed CC BY 4.0. Where you need to go back to an
160
+ institution's own copy, `iiif_url` points at it.
161
+
162
+ ## Credit
163
+
164
+ Data created by Dominique Stutzmann and Lise Bernard Leterme (Institut de Recherche et d'Histoire des
165
+ Textes), Mélodie Boillet and Christopher Kermorvant (Teklia), and Marie-Laurence Bonhomme.
166
+ Converted and repackaged for the Hub by [Daniel van Strien](https://huggingface.co/davanstrien).
167
+
168
+ ```bibtex
169
+ @dataset{stutzmann_2025_horae_lsv2,
170
+ author = {Stutzmann, Dominique and Bernard Leterme, Lise and Boillet, M{\'e}lodie and
171
+ Bonhomme, Marie-Laurence and Kermorvant, Christopher},
172
+ title = {{HORAE-LSv2. Layout Segmentation Dataset for Medieval Books of Hours}},
173
+ year = {2025},
174
+ version = {2.0},
175
+ publisher = {Zenodo},
176
+ doi = {10.5281/zenodo.16919911}
177
+ }
178
+ ```