Datasets:

Modalities:
Image
Formats:
parquet
Size:
< 1K
ArXiv:
License:

Improve dataset card

#1
by davanstrien HF Staff - opened
Files changed (1) hide show
  1. README.md +36 -266
README.md CHANGED
@@ -21,287 +21,61 @@ task_ids: []
21
 
22
  # YALTAi Tabular Dataset
23
 
24
- ## Table of Contents
25
- - [YALTAi Tabular Dataset](#YALTAi-Tabular-Dataset)
26
- - [Table of Contents](#table-of-contents)
27
- - [Dataset Description](#dataset-description)
28
- - [Dataset Summary](#dataset-summary)
29
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
30
- - [Dataset Structure](#dataset-structure)
31
- - [Data Instances](#data-instances)
32
- - [Data Fields](#data-fields)
33
- - [Data Splits](#data-splits)
34
- - [Dataset Creation](#dataset-creation)
35
- - [Curation Rationale](#curation-rationale)
36
- - [Source Data](#source-data)
37
- - [Initial Data Collection and Normalization](#initial-data-collection-and-normalization)
38
- - [Who are the source language producers?](#who-are-the-source-language-producers)
39
- - [Annotations](#annotations)
40
- - [Annotation process](#annotation-process)
41
- - [Who are the annotators?](#who-are-the-annotators)
42
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
43
- - [Considerations for Using the Data](#considerations-for-using-the-data)
44
- - [Social Impact of Dataset](#social-impact-of-dataset)
45
- - [Discussion of Biases](#discussion-of-biases)
46
- - [Other Known Limitations](#other-known-limitations)
47
- - [Additional Information](#additional-information)
48
- - [Dataset Curators](#dataset-curators)
49
- - [Licensing Information](#licensing-information)
50
- - [Citation Information](#citation-information)
51
- - [Contributions](#contributions)
52
 
53
- ## Dataset Description
54
 
55
- - **Homepage:** [https://doi.org/10.5281/zenodo.6827706](https://doi.org/10.5281/zenodo.6827706)
56
- - **Paper:** [https://arxiv.org/abs/2207.11230](https://arxiv.org/abs/2207.11230)
57
 
58
- ### Dataset Summary
59
 
60
- This dataset contains a subset of data used in the paper [You Actually Look Twice At it (YALTAi): using an object detectionapproach instead of region segmentation within the Kraken engine](https://arxiv.org/abs/2207.11230). This paper proposes treating page layout recognition on historical documents as an object detection task (compared to the usual pixel segmentation approach). This dataset covers pages with tabular information with the following objects "Header", "Col", "Marginal", "text".
 
 
61
 
62
- ### Supported Tasks and Leaderboards
63
-
64
- - `object-detection`: This dataset can be used to train a model for object-detection on historic document images.
65
-
66
-
67
- ## Dataset Structure
68
-
69
- This dataset has two configurations. These configurations both cover the same data and annotations but provide these annotations in different forms to make it easier to integrate the data with existing processing pipelines.
70
-
71
- - The first configuration, `YOLO`, uses the data's original format.
72
- - The second configuration converts the YOLO format into a format which is closer to the `COCO` annotation format. This is done to make it easier to work with the `feature_extractor`s from the `Transformers` models for object detection, which expect data to be in a COCO style format.
73
-
74
- ### Data Instances
75
-
76
- An example instance from the COCO config:
77
-
78
- ```
79
- {'height': 2944,
80
- 'image': <PIL.PngImagePlugin.PngImageFile image mode=L size=2064x2944 at 0x7FA413CDA210>,
81
- 'image_id': 0,
82
- 'objects': [{'area': 435956,
83
- 'bbox': [0.0, 244.0, 1493.0, 292.0],
84
- 'category_id': 0,
85
- 'id': 0,
86
- 'image_id': '0',
87
- 'iscrowd': False,
88
- 'segmentation': []},
89
- {'area': 88234,
90
- 'bbox': [305.0, 127.0, 562.0, 157.0],
91
- 'category_id': 2,
92
- 'id': 0,
93
- 'image_id': '0',
94
- 'iscrowd': False,
95
- 'segmentation': []},
96
- {'area': 5244,
97
- 'bbox': [1416.0, 196.0, 92.0, 57.0],
98
- 'category_id': 2,
99
- 'id': 0,
100
- 'image_id': '0',
101
- 'iscrowd': False,
102
- 'segmentation': []},
103
- {'area': 5720,
104
- 'bbox': [1681.0, 182.0, 88.0, 65.0],
105
- 'category_id': 2,
106
- 'id': 0,
107
- 'image_id': '0',
108
- 'iscrowd': False,
109
- 'segmentation': []},
110
- {'area': 374085,
111
- 'bbox': [0.0, 540.0, 163.0, 2295.0],
112
- 'category_id': 1,
113
- 'id': 0,
114
- 'image_id': '0',
115
- 'iscrowd': False,
116
- 'segmentation': []},
117
- {'area': 577599,
118
- 'bbox': [104.0, 537.0, 253.0, 2283.0],
119
- 'category_id': 1,
120
- 'id': 0,
121
- 'image_id': '0',
122
- 'iscrowd': False,
123
- 'segmentation': []},
124
- {'area': 598670,
125
- 'bbox': [304.0, 533.0, 262.0, 2285.0],
126
- 'category_id': 1,
127
- 'id': 0,
128
- 'image_id': '0',
129
- 'iscrowd': False,
130
- 'segmentation': []},
131
- {'area': 56,
132
- 'bbox': [284.0, 539.0, 8.0, 7.0],
133
- 'category_id': 1,
134
- 'id': 0,
135
- 'image_id': '0',
136
- 'iscrowd': False,
137
- 'segmentation': []},
138
- {'area': 1868412,
139
- 'bbox': [498.0, 513.0, 812.0, 2301.0],
140
- 'category_id': 1,
141
- 'id': 0,
142
- 'image_id': '0',
143
- 'iscrowd': False,
144
- 'segmentation': []},
145
- {'area': 307800,
146
- 'bbox': [1250.0, 512.0, 135.0, 2280.0],
147
- 'category_id': 1,
148
- 'id': 0,
149
- 'image_id': '0',
150
- 'iscrowd': False,
151
- 'segmentation': []},
152
- {'area': 494109,
153
- 'bbox': [1330.0, 503.0, 217.0, 2277.0],
154
- 'category_id': 1,
155
- 'id': 0,
156
- 'image_id': '0',
157
- 'iscrowd': False,
158
- 'segmentation': []},
159
- {'area': 52,
160
- 'bbox': [1734.0, 1013.0, 4.0, 13.0],
161
- 'category_id': 1,
162
- 'id': 0,
163
- 'image_id': '0',
164
- 'iscrowd': False,
165
- 'segmentation': []},
166
- {'area': 90666,
167
- 'bbox': [0.0, 1151.0, 54.0, 1679.0],
168
- 'category_id': 1,
169
- 'id': 0,
170
- 'image_id': '0',
171
- 'iscrowd': False,
172
- 'segmentation': []}],
173
- 'width': 2064}
174
- ```
175
-
176
- An example instance from the YOLO config:
177
-
178
- ``` python
179
- {'image': <PIL.PngImagePlugin.PngImageFile image mode=L size=2064x2944 at 0x7FAA140F2450>,
180
- 'objects': {'bbox': [[747, 390, 1493, 292],
181
- [586, 206, 562, 157],
182
- [1463, 225, 92, 57],
183
- [1725, 215, 88, 65],
184
- [80, 1688, 163, 2295],
185
- [231, 1678, 253, 2283],
186
- [435, 1675, 262, 2285],
187
- [288, 543, 8, 7],
188
- [905, 1663, 812, 2301],
189
- [1318, 1653, 135, 2280],
190
- [1439, 1642, 217, 2277],
191
- [1737, 1019, 4, 13],
192
- [26, 1991, 54, 1679]],
193
- 'label': [0, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1]}}
194
- ```
195
-
196
-
197
-
198
- ### Data Fields
199
-
200
- The fields for the YOLO config:
201
-
202
- - `image`: the image
203
- - `objects`: the annotations which consist of:
204
- - `bbox`: a list of bounding boxes for the image
205
- - `label`: a list of labels for this image
206
-
207
- The fields for the COCO config:
208
-
209
- - `height`: height of the image
210
- - `width`: width of the image
211
- - `image`: image
212
- - `image_id`: id for the image
213
- - `objects`: annotations in COCO format, consisting of a list containing dictionaries with the following keys:
214
- - `bbox`: bounding boxes for the images
215
- - `category_id`: a label for the image
216
- - `image_id`: id for the image
217
- - `iscrowd`: COCO `iscrowd` flag
218
- - `segmentation`: COCO segmentation annotations (empty in this case but kept for compatibility with other processing scripts)
219
-
220
-
221
-
222
- ### Data Splits
223
-
224
- The dataset contains a train, validation and test split with the following numbers per split:
225
-
226
-
227
- | | train | validation | test |
228
- |----------|-------|------------|------|
229
- | examples | 196 | 22 | 135 |
230
-
231
-
232
- ## Dataset Creation
233
-
234
- > [this] dataset was produced using a single source, the Lectaurep Repertoires dataset [Rostaing et al., 2021], which served as a basis for only the training and development split. The testset is composed of original data, from various documents, from the 17th century up to the early 20th with a single soldier war report. The test set is voluntarily very different and out of domain with column borders that are not drawn nor printed in certain cases, layout in some kind of masonry layout. p.8
235
- .
236
- ### Curation Rationale
237
-
238
- This dataset was created to produce a simplified version of the [Lectaurep Repertoires dataset](https://github.com/HTR-United/lectaurep-repertoires), which was found to contain:
239
-
240
- > around 16 different ways to describe columns, from Col1 to Col7, the case-different col1-col7 and finally ColPair and ColOdd, which we all reduced to Col p.8
241
-
242
-
243
-
244
- ### Source Data
245
-
246
- #### Initial Data Collection and Normalization
247
-
248
- The LECTAUREP (LECTure Automatique de REPertoires) project, which began in 2018, is a joint initiative of the Minutier central des notaires de Paris, the National Archives and the
249
- Minutier central des notaires de Paris of the National Archives, the [ALMAnaCH (Automatic Language Modeling and Analysis & Computational Humanities)](https://www.inria.fr/en/almanach) team at Inria and the EPHE (Ecole Pratique des Hautes Etudes), in partnership with the Ministry of Culture.
250
-
251
- > The lectaurep-bronod corpus brings together 100 pages from the repertoire of Maître Louis Bronod (1719-1765), notary in Paris from December 13, 1719 to July 23, 1765. The pages concerned were written during the years 1742 to 1745.
252
-
253
- #### Who are the source language producers?
254
-
255
- [More information needed]
256
-
257
- ### Annotations
258
 
259
  | | Train | Dev | Test | Total | Average area | Median area |
260
- |----------|-------|-----|------|-------|--------------|-------------|
261
- | Col | 724 | 105 | 829 | 1658 | 9.32 | 6.33 |
262
- | Header | 103 | 15 | 42 | 160 | 6.78 | 7.10 |
263
- | Marginal | 60 | 8 | 0 | 68 | 0.70 | 0.71 |
264
- | Text | 13 | 5 | 0 | 18 | 0.01 | 0.00 |
265
- | | | | - | | | |
266
 
 
 
267
 
268
- #### Annotation process
 
269
 
270
- [More information needed]
271
 
272
- #### Who are the annotators?
273
 
274
- [More information needed]
275
 
276
- ### Personal and Sensitive Information
277
 
278
- This data does not contain information relating to living individuals.
279
-
280
- ## Considerations for Using the Data
281
-
282
- ### Social Impact of Dataset
283
-
284
- A growing number of datasets are related to page layout for historical documents. This dataset offers a different approach to annotating these datasets (focusing on object detection rather than pixel-level annotations). Improving document layout recognition can have a positive impact on downstream tasks, in particular Optical Character Recognition.
285
-
286
- ### Discussion of Biases
287
-
288
- Historical documents contain a wide variety of page layouts. This means that the ability of models trained on this dataset to transfer to documents with very different layouts is not guaranteed.
289
-
290
- ### Other Known Limitations
291
-
292
- [More information needed]
293
 
 
 
 
 
294
 
295
- ## Additional Information
296
 
297
- ### Dataset Curators
 
 
298
 
 
299
 
300
- ### Licensing Information
301
 
302
- [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode)
303
 
304
- ### Citation Information
305
 
306
  ```
307
  @dataset{clerice_thibault_2022_6827706,
@@ -316,12 +90,8 @@ Historical documents contain a wide variety of page layouts. This means that the
316
  }
317
  ```
318
 
319
-
320
-
321
  [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.6827706.svg)](https://doi.org/10.5281/zenodo.6827706)
322
 
 
323
 
324
-
325
- ### Contributions
326
-
327
- Thanks to [@davanstrien](https://github.com/davanstrien) for adding this dataset.
 
21
 
22
  # YALTAi Tabular Dataset
23
 
24
+ 353 page images of historical documents with tabular layouts, mostly notarial registers, with bounding-box annotations for four zone types: `Col`, `Header`, `Marginal` and `text`. Created by Thibault Clérice and deposited on [Zenodo](https://doi.org/10.5281/zenodo.6827706) alongside the paper [You Actually Look Twice At it (YALTAi)](https://arxiv.org/abs/2207.11230) (*Journal of Data Mining and Digital Humanities*, 2022), which treats page layout recognition on historical documents as an object detection problem rather than a pixel classification one.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
+ The annotations support layout analysis before transcription. Telling the columns of a register apart from its header and its marginalia is what decides whether a downstream OCR/HTR engine emits usable structured text or one merged block.
27
 
28
+ **The sibling dataset.** [`biglam/yalta_ai_segmonto_manuscript_dataset`](https://huggingface.co/datasets/biglam/yalta_ai_segmonto_manuscript_dataset) is the other half of the same experiment: manuscripts and early printed books, labelled with the [SegmOnto](https://segmonto.github.io/) zone vocabulary. This dataset does not use SegmOnto — tables were given their own four-class scheme.
 
29
 
30
+ ## Splits
31
 
32
+ | | train | validation | test |
33
+ |--------|-------|------------|------|
34
+ | images | 196 | 22 | 135 |
35
 
36
+ Object instances per class, from Table 3 of the paper:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
  | | Train | Dev | Test | Total | Average area | Median area |
39
+ |----------|------:|----:|-----:|------:|-------------:|------------:|
40
+ | Col | 724 | 105 | 829 | 1658 | 9.32 | 6.33 |
41
+ | Header | 103 | 15 | 42 | 160 | 6.78 | 7.10 |
42
+ | Marginal | 60 | 8 | 0 | 68 | 0.70 | 0.71 |
43
+ | text | 13 | 5 | 0 | 18 | 0.01 | 0.00 |
 
44
 
45
+ > [!WARNING]
46
+ > **Only `Col` and `Header` are annotated in the test split.** The paper's reason: "marginal and text were not clearly defined". `Marginal` and `text` have zero test instances and cannot be evaluated on held-out data — treat them as training signal only, and expect a model trained on all four classes to be scored on two.
47
 
48
+ > [!WARNING]
49
+ > **The test split is out of domain by design.** Train and validation come from a single source; the test set is unrelated material from the 17th to the early 20th century, including one soldier's war report, with column borders that are neither drawn nor printed and layouts the paper calls "masonry". Test scores here measure transfer, not in-domain accuracy. In the paper the best model reaches 4.77% mAP on this test set, against 47.75% on the manuscripts dataset.
50
 
51
+ Column labels were collapsed before release. The source annotations used "around 16 different ways to describe columns, from Col1 to Col7, the case-different col1-col7 and finally ColPair and ColOdd" — a convention that works around Kraken's tendency to merge adjacent regions of the same type. All of them were reduced to a single `Col`.
52
 
53
+ ## Source data
54
 
55
+ Train and validation come from the [Lectaurep Repertoires](https://github.com/HTR-United/lectaurep-repertoires) dataset (Rostaing et al., 2021). LECTAUREP (LECTure Automatique de REPertoires), begun in 2018, is a joint project of the Minutier central des notaires de Paris at the Archives nationales, the [ALMAnaCH](https://www.inria.fr/en/almanach) team at Inria and the EPHE, in partnership with the French Ministry of Culture. The material is notaries' repertories: ruled, tabular, handwritten registers.
56
 
57
+ ## Loading the data
58
 
59
+ This repo still ships a legacy loading script, which `datasets` no longer runs:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
 
61
+ ```python
62
+ >>> load_dataset("biglam/yalta_ai_tabular_dataset", "YOLO")
63
+ RuntimeError: Dataset scripts are no longer supported, but found yalta_ai_tabular_dataset.py
64
+ ```
65
 
66
+ (checked against `datasets` 5.0.0). Until this repo is converted, take the data from Zenodo — a 359 MB zip laid out as `yaltai-table/{train,val,test}/{images,labels}`, one YOLO-format `.txt` per image (class index, then normalised centre-x, centre-y, width, height):
67
 
68
+ ```bash
69
+ curl -L -o yaltai-table.zip "https://zenodo.org/record/6827706/files/yaltai-table.zip?download=1"
70
+ ```
71
 
72
+ The loading script defined two configurations over the same annotations: `YOLO`, the original format, and `COCO`, converted for the Transformers object-detection processors. The COCO conversion left `segmentation` empty — these are boxes, not polygons.
73
 
74
+ ## Licence
75
 
76
+ [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode).
77
 
78
+ ## Citation
79
 
80
  ```
81
  @dataset{clerice_thibault_2022_6827706,
 
90
  }
91
  ```
92
 
 
 
93
  [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.6827706.svg)](https://doi.org/10.5281/zenodo.6827706)
94
 
95
+ The accompanying paper: Thibault Clérice, "You Actually Look Twice At it (YALTAi): using an object detection approach instead of region segmentation within the Kraken engine", *Journal of Data Mining and Digital Humanities*, 2022. [arXiv:2207.11230](https://arxiv.org/abs/2207.11230).
96
 
97
+ Thanks to [@davanstrien](https://github.com/davanstrien) for adding this dataset to the Hub.