parquet-converter
commited on
Commit
•
c808c51
1
Parent(s):
37e4776
Update parquet files
Browse files- 1510_1699/blbooks-train.parquet +3 -0
- README.md +0 -900
- blbooks.py +0 -234
- dataset_infos.json +0 -1
1510_1699/blbooks-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c69b126127ddc1d8872174db9bad3a4b7c83b60dd4ec7b0c64bf7d80a47affa
|
3 |
+
size 64550494
|
README.md
DELETED
@@ -1,900 +0,0 @@
|
|
1 |
-
---
|
2 |
-
annotations_creators:
|
3 |
-
- no-annotation
|
4 |
-
language_creators:
|
5 |
-
- machine-generated
|
6 |
-
language:
|
7 |
-
- de
|
8 |
-
- en
|
9 |
-
- es
|
10 |
-
- fr
|
11 |
-
- it
|
12 |
-
- nl
|
13 |
-
license:
|
14 |
-
- cc0-1.0
|
15 |
-
multilinguality:
|
16 |
-
- multilingual
|
17 |
-
pretty_name: British Library Books
|
18 |
-
size_categories:
|
19 |
-
- 100K<n<1M
|
20 |
-
source_datasets:
|
21 |
-
- original
|
22 |
-
task_categories:
|
23 |
-
- text-generation
|
24 |
-
- fill-mask
|
25 |
-
- other
|
26 |
-
task_ids:
|
27 |
-
- language-modeling
|
28 |
-
- masked-language-modeling
|
29 |
-
tags:
|
30 |
-
- digital-humanities-research
|
31 |
-
dataset_info:
|
32 |
-
- config_name: all
|
33 |
-
features:
|
34 |
-
- name: record_id
|
35 |
-
dtype: string
|
36 |
-
- name: date
|
37 |
-
dtype: int32
|
38 |
-
- name: raw_date
|
39 |
-
dtype: string
|
40 |
-
- name: title
|
41 |
-
dtype: string
|
42 |
-
- name: place
|
43 |
-
dtype: string
|
44 |
-
- name: empty_pg
|
45 |
-
dtype: bool
|
46 |
-
- name: text
|
47 |
-
dtype: string
|
48 |
-
- name: pg
|
49 |
-
dtype: int32
|
50 |
-
- name: mean_wc_ocr
|
51 |
-
dtype: float32
|
52 |
-
- name: std_wc_ocr
|
53 |
-
dtype: float64
|
54 |
-
- name: name
|
55 |
-
dtype: string
|
56 |
-
- name: all_names
|
57 |
-
dtype: string
|
58 |
-
- name: Publisher
|
59 |
-
dtype: string
|
60 |
-
- name: Country of publication 1
|
61 |
-
dtype: string
|
62 |
-
- name: all Countries of publication
|
63 |
-
dtype: string
|
64 |
-
- name: Physical description
|
65 |
-
dtype: string
|
66 |
-
- name: Language_1
|
67 |
-
dtype: string
|
68 |
-
- name: Language_2
|
69 |
-
dtype: string
|
70 |
-
- name: Language_3
|
71 |
-
dtype: string
|
72 |
-
- name: Language_4
|
73 |
-
dtype: string
|
74 |
-
- name: multi_language
|
75 |
-
dtype: bool
|
76 |
-
splits:
|
77 |
-
- name: train
|
78 |
-
num_bytes: 30394267732
|
79 |
-
num_examples: 14011953
|
80 |
-
download_size: 10486035662
|
81 |
-
dataset_size: 30394267732
|
82 |
-
- config_name: 1800s
|
83 |
-
features:
|
84 |
-
- name: record_id
|
85 |
-
dtype: string
|
86 |
-
- name: date
|
87 |
-
dtype: int32
|
88 |
-
- name: raw_date
|
89 |
-
dtype: string
|
90 |
-
- name: title
|
91 |
-
dtype: string
|
92 |
-
- name: place
|
93 |
-
dtype: string
|
94 |
-
- name: empty_pg
|
95 |
-
dtype: bool
|
96 |
-
- name: text
|
97 |
-
dtype: string
|
98 |
-
- name: pg
|
99 |
-
dtype: int32
|
100 |
-
- name: mean_wc_ocr
|
101 |
-
dtype: float32
|
102 |
-
- name: std_wc_ocr
|
103 |
-
dtype: float64
|
104 |
-
- name: name
|
105 |
-
dtype: string
|
106 |
-
- name: all_names
|
107 |
-
dtype: string
|
108 |
-
- name: Publisher
|
109 |
-
dtype: string
|
110 |
-
- name: Country of publication 1
|
111 |
-
dtype: string
|
112 |
-
- name: all Countries of publication
|
113 |
-
dtype: string
|
114 |
-
- name: Physical description
|
115 |
-
dtype: string
|
116 |
-
- name: Language_1
|
117 |
-
dtype: string
|
118 |
-
- name: Language_2
|
119 |
-
dtype: string
|
120 |
-
- name: Language_3
|
121 |
-
dtype: string
|
122 |
-
- name: Language_4
|
123 |
-
dtype: string
|
124 |
-
- name: multi_language
|
125 |
-
dtype: bool
|
126 |
-
splits:
|
127 |
-
- name: train
|
128 |
-
num_bytes: 30020434670
|
129 |
-
num_examples: 13781747
|
130 |
-
download_size: 10348577602
|
131 |
-
dataset_size: 30020434670
|
132 |
-
- config_name: 1700s
|
133 |
-
features:
|
134 |
-
- name: record_id
|
135 |
-
dtype: string
|
136 |
-
- name: date
|
137 |
-
dtype: int32
|
138 |
-
- name: raw_date
|
139 |
-
dtype: string
|
140 |
-
- name: title
|
141 |
-
dtype: string
|
142 |
-
- name: place
|
143 |
-
dtype: string
|
144 |
-
- name: empty_pg
|
145 |
-
dtype: bool
|
146 |
-
- name: text
|
147 |
-
dtype: string
|
148 |
-
- name: pg
|
149 |
-
dtype: int32
|
150 |
-
- name: mean_wc_ocr
|
151 |
-
dtype: float32
|
152 |
-
- name: std_wc_ocr
|
153 |
-
dtype: float64
|
154 |
-
- name: name
|
155 |
-
dtype: string
|
156 |
-
- name: all_names
|
157 |
-
dtype: string
|
158 |
-
- name: Publisher
|
159 |
-
dtype: string
|
160 |
-
- name: Country of publication 1
|
161 |
-
dtype: string
|
162 |
-
- name: all Countries of publication
|
163 |
-
dtype: string
|
164 |
-
- name: Physical description
|
165 |
-
dtype: string
|
166 |
-
- name: Language_1
|
167 |
-
dtype: string
|
168 |
-
- name: Language_2
|
169 |
-
dtype: string
|
170 |
-
- name: Language_3
|
171 |
-
dtype: string
|
172 |
-
- name: Language_4
|
173 |
-
dtype: string
|
174 |
-
- name: multi_language
|
175 |
-
dtype: bool
|
176 |
-
splits:
|
177 |
-
- name: train
|
178 |
-
num_bytes: 266382657
|
179 |
-
num_examples: 178224
|
180 |
-
download_size: 95137895
|
181 |
-
dataset_size: 266382657
|
182 |
-
- config_name: '1510_1699'
|
183 |
-
features:
|
184 |
-
- name: record_id
|
185 |
-
dtype: string
|
186 |
-
- name: date
|
187 |
-
dtype: timestamp[s]
|
188 |
-
- name: raw_date
|
189 |
-
dtype: string
|
190 |
-
- name: title
|
191 |
-
dtype: string
|
192 |
-
- name: place
|
193 |
-
dtype: string
|
194 |
-
- name: empty_pg
|
195 |
-
dtype: bool
|
196 |
-
- name: text
|
197 |
-
dtype: string
|
198 |
-
- name: pg
|
199 |
-
dtype: int32
|
200 |
-
- name: mean_wc_ocr
|
201 |
-
dtype: float32
|
202 |
-
- name: std_wc_ocr
|
203 |
-
dtype: float64
|
204 |
-
- name: name
|
205 |
-
dtype: string
|
206 |
-
- name: all_names
|
207 |
-
dtype: string
|
208 |
-
- name: Publisher
|
209 |
-
dtype: string
|
210 |
-
- name: Country of publication 1
|
211 |
-
dtype: string
|
212 |
-
- name: all Countries of publication
|
213 |
-
dtype: string
|
214 |
-
- name: Physical description
|
215 |
-
dtype: string
|
216 |
-
- name: Language_1
|
217 |
-
dtype: string
|
218 |
-
- name: Language_2
|
219 |
-
dtype: string
|
220 |
-
- name: Language_3
|
221 |
-
dtype: string
|
222 |
-
- name: Language_4
|
223 |
-
dtype: string
|
224 |
-
- name: multi_language
|
225 |
-
dtype: bool
|
226 |
-
splits:
|
227 |
-
- name: train
|
228 |
-
num_bytes: 107667469
|
229 |
-
num_examples: 51982
|
230 |
-
download_size: 42320165
|
231 |
-
dataset_size: 107667469
|
232 |
-
- config_name: '1500_1899'
|
233 |
-
features:
|
234 |
-
- name: record_id
|
235 |
-
dtype: string
|
236 |
-
- name: date
|
237 |
-
dtype: timestamp[s]
|
238 |
-
- name: raw_date
|
239 |
-
dtype: string
|
240 |
-
- name: title
|
241 |
-
dtype: string
|
242 |
-
- name: place
|
243 |
-
dtype: string
|
244 |
-
- name: empty_pg
|
245 |
-
dtype: bool
|
246 |
-
- name: text
|
247 |
-
dtype: string
|
248 |
-
- name: pg
|
249 |
-
dtype: int32
|
250 |
-
- name: mean_wc_ocr
|
251 |
-
dtype: float32
|
252 |
-
- name: std_wc_ocr
|
253 |
-
dtype: float64
|
254 |
-
- name: name
|
255 |
-
dtype: string
|
256 |
-
- name: all_names
|
257 |
-
dtype: string
|
258 |
-
- name: Publisher
|
259 |
-
dtype: string
|
260 |
-
- name: Country of publication 1
|
261 |
-
dtype: string
|
262 |
-
- name: all Countries of publication
|
263 |
-
dtype: string
|
264 |
-
- name: Physical description
|
265 |
-
dtype: string
|
266 |
-
- name: Language_1
|
267 |
-
dtype: string
|
268 |
-
- name: Language_2
|
269 |
-
dtype: string
|
270 |
-
- name: Language_3
|
271 |
-
dtype: string
|
272 |
-
- name: Language_4
|
273 |
-
dtype: string
|
274 |
-
- name: multi_language
|
275 |
-
dtype: bool
|
276 |
-
splits:
|
277 |
-
- name: train
|
278 |
-
num_bytes: 30452067039
|
279 |
-
num_examples: 14011953
|
280 |
-
download_size: 10486035662
|
281 |
-
dataset_size: 30452067039
|
282 |
-
- config_name: '1800_1899'
|
283 |
-
features:
|
284 |
-
- name: record_id
|
285 |
-
dtype: string
|
286 |
-
- name: date
|
287 |
-
dtype: timestamp[s]
|
288 |
-
- name: raw_date
|
289 |
-
dtype: string
|
290 |
-
- name: title
|
291 |
-
dtype: string
|
292 |
-
- name: place
|
293 |
-
dtype: string
|
294 |
-
- name: empty_pg
|
295 |
-
dtype: bool
|
296 |
-
- name: text
|
297 |
-
dtype: string
|
298 |
-
- name: pg
|
299 |
-
dtype: int32
|
300 |
-
- name: mean_wc_ocr
|
301 |
-
dtype: float32
|
302 |
-
- name: std_wc_ocr
|
303 |
-
dtype: float64
|
304 |
-
- name: name
|
305 |
-
dtype: string
|
306 |
-
- name: all_names
|
307 |
-
dtype: string
|
308 |
-
- name: Publisher
|
309 |
-
dtype: string
|
310 |
-
- name: Country of publication 1
|
311 |
-
dtype: string
|
312 |
-
- name: all Countries of publication
|
313 |
-
dtype: string
|
314 |
-
- name: Physical description
|
315 |
-
dtype: string
|
316 |
-
- name: Language_1
|
317 |
-
dtype: string
|
318 |
-
- name: Language_2
|
319 |
-
dtype: string
|
320 |
-
- name: Language_3
|
321 |
-
dtype: string
|
322 |
-
- name: Language_4
|
323 |
-
dtype: string
|
324 |
-
- name: multi_language
|
325 |
-
dtype: bool
|
326 |
-
splits:
|
327 |
-
- name: train
|
328 |
-
num_bytes: 30077284377
|
329 |
-
num_examples: 13781747
|
330 |
-
download_size: 10348577602
|
331 |
-
dataset_size: 30077284377
|
332 |
-
- config_name: '1700_1799'
|
333 |
-
features:
|
334 |
-
- name: record_id
|
335 |
-
dtype: string
|
336 |
-
- name: date
|
337 |
-
dtype: timestamp[s]
|
338 |
-
- name: raw_date
|
339 |
-
dtype: string
|
340 |
-
- name: title
|
341 |
-
dtype: string
|
342 |
-
- name: place
|
343 |
-
dtype: string
|
344 |
-
- name: empty_pg
|
345 |
-
dtype: bool
|
346 |
-
- name: text
|
347 |
-
dtype: string
|
348 |
-
- name: pg
|
349 |
-
dtype: int32
|
350 |
-
- name: mean_wc_ocr
|
351 |
-
dtype: float32
|
352 |
-
- name: std_wc_ocr
|
353 |
-
dtype: float64
|
354 |
-
- name: name
|
355 |
-
dtype: string
|
356 |
-
- name: all_names
|
357 |
-
dtype: string
|
358 |
-
- name: Publisher
|
359 |
-
dtype: string
|
360 |
-
- name: Country of publication 1
|
361 |
-
dtype: string
|
362 |
-
- name: all Countries of publication
|
363 |
-
dtype: string
|
364 |
-
- name: Physical description
|
365 |
-
dtype: string
|
366 |
-
- name: Language_1
|
367 |
-
dtype: string
|
368 |
-
- name: Language_2
|
369 |
-
dtype: string
|
370 |
-
- name: Language_3
|
371 |
-
dtype: string
|
372 |
-
- name: Language_4
|
373 |
-
dtype: string
|
374 |
-
- name: multi_language
|
375 |
-
dtype: bool
|
376 |
-
splits:
|
377 |
-
- name: train
|
378 |
-
num_bytes: 267117831
|
379 |
-
num_examples: 178224
|
380 |
-
download_size: 95137895
|
381 |
-
dataset_size: 267117831
|
382 |
-
---
|
383 |
-
|
384 |
-
# Dataset Card for British Library Books
|
385 |
-
|
386 |
-
## Table of Contents
|
387 |
-
|
388 |
-
- [Dataset Card for British Library Books](#dataset-card-for-British-Library-Books)
|
389 |
-
- [Table of Contents](#table-of-contents)
|
390 |
-
- [Dataset Description](#dataset-description)
|
391 |
-
- [Dataset Summary](#dataset-summary)
|
392 |
-
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
393 |
-
- [Language model training](#language-model-training)
|
394 |
-
- [Supervised tasks](#supervised-tasks)
|
395 |
-
- [Languages](#languages)
|
396 |
-
- [Language change](#language-change)
|
397 |
-
- [Optical Character Recognition](#optical-character-recognition)
|
398 |
-
- [OCR word confidence](#ocr-word-confidence)
|
399 |
-
- [Dataset Structure](#dataset-structure)
|
400 |
-
- [Data Instances](#data-instances)
|
401 |
-
- [Data Fields](#data-fields)
|
402 |
-
- [Data Splits](#data-splits)
|
403 |
-
- [Dataset Creation](#dataset-creation)
|
404 |
-
- [Curation Rationale](#curation-rationale)
|
405 |
-
- [Source Data](#source-data)
|
406 |
-
- [Initial Data Collection and Normalization](#initial-data-collection-and-normalization)
|
407 |
-
- [Date normalization](#date-normalization)
|
408 |
-
- [Metadata included](#metadata-included)
|
409 |
-
- [Who are the source language producers?](#who-are-the-source-language-producers)
|
410 |
-
- [Annotations](#annotations)
|
411 |
-
- [Annotation process](#annotation-process)
|
412 |
-
- [Who are the annotators?](#who-are-the-annotators)
|
413 |
-
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
414 |
-
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
415 |
-
- [Social Impact of Dataset](#social-impact-of-dataset)
|
416 |
-
- [Discussion of Biases](#discussion-of-biases)
|
417 |
-
- [Colonialism](#colonialism)
|
418 |
-
- [Other Known Limitations](#other-known-limitations)
|
419 |
-
- [Additional Information](#additional-information)
|
420 |
-
- [Dataset Curators](#dataset-curators)
|
421 |
-
- [Licensing Information](#licensing-information)
|
422 |
-
- [Citation Information](#citation-information)
|
423 |
-
- [Contributions](#contributions)
|
424 |
-
|
425 |
-
## Dataset Description
|
426 |
-
|
427 |
-
- **Homepage:** https://www.bl.uk/collection-guides/digitised-printed-books
|
428 |
-
- **Repository:** https://doi.org/10.21250/db14
|
429 |
-
- **Paper:**
|
430 |
-
- **Leaderboard:**
|
431 |
-
- **Point of Contact:** labs@bl.uk
|
432 |
-
|
433 |
-
### Dataset Summary
|
434 |
-
|
435 |
-
This dataset consists of books digitised by the British Library in partnership with Microsoft. The dataset includes ~25 million pages of out of copyright texts. The majority of the texts were published in the 18th and 19th Century, but the collection also consists of a smaller number of books from earlier periods. Items within this collection cover a wide range of subject areas, including geography, philosophy, history, poetry and literature and are published in various languages.
|
436 |
-
|
437 |
-
While the books are predominately from the 18th and 19th Centuries, there are fewer books from earlier periods. The number of pages in the corpus by decade:
|
438 |
-
|
439 |
-
| | page count |
|
440 |
-
| ---- | ---------- |
|
441 |
-
| 1510 | 94 |
|
442 |
-
| 1520 | 32 |
|
443 |
-
| 1540 | 184 |
|
444 |
-
| 1550 | 16 |
|
445 |
-
| 1580 | 276 |
|
446 |
-
| 1590 | 540 |
|
447 |
-
| 1600 | 1117 |
|
448 |
-
| 1610 | 1132 |
|
449 |
-
| 1620 | 1856 |
|
450 |
-
| 1630 | 9274 |
|
451 |
-
| 1640 | 4232 |
|
452 |
-
| 1650 | 2944 |
|
453 |
-
| 1660 | 5858 |
|
454 |
-
| 1670 | 11415 |
|
455 |
-
| 1680 | 8348 |
|
456 |
-
| 1690 | 13756 |
|
457 |
-
| 1700 | 10160 |
|
458 |
-
| 1710 | 9556 |
|
459 |
-
| 1720 | 10314 |
|
460 |
-
| 1730 | 13282 |
|
461 |
-
| 1740 | 10778 |
|
462 |
-
| 1750 | 12001 |
|
463 |
-
| 1760 | 21415 |
|
464 |
-
| 1770 | 28490 |
|
465 |
-
| 1780 | 32676 |
|
466 |
-
| 1790 | 50014 |
|
467 |
-
| 1800 | 307806 |
|
468 |
-
| 1810 | 478008 |
|
469 |
-
| 1820 | 589419 |
|
470 |
-
| 1830 | 681212 |
|
471 |
-
| 1840 | 1113473 |
|
472 |
-
| 1850 | 1726108 |
|
473 |
-
| 1860 | 1725407 |
|
474 |
-
| 1870 | 2069089 |
|
475 |
-
| 1880 | 2585159 |
|
476 |
-
| 1890 | 3365031 |
|
477 |
-
|
478 |
-
[More Information Needed]
|
479 |
-
|
480 |
-
### Supported Tasks and Leaderboards
|
481 |
-
|
482 |
-
This collection has been previously used across various digital history and humanities projects since being published.
|
483 |
-
|
484 |
-
The dataset consists of text and a range of metadata associated with this text. This metadata includes:
|
485 |
-
|
486 |
-
- date of publication
|
487 |
-
- place of publication
|
488 |
-
- country of publication
|
489 |
-
- language
|
490 |
-
- OCR quality
|
491 |
-
- physical description of the original physical item
|
492 |
-
|
493 |
-
#### Language model training
|
494 |
-
|
495 |
-
As a relatively large dataset, `blbooks` provides a source dataset for training language models. The presence of this metadata also offers interesting opportunities to use this dataset as a source for training language models based on:
|
496 |
-
|
497 |
-
- specific time-periods
|
498 |
-
- specific languages
|
499 |
-
- certain OCR quality thresholds
|
500 |
-
|
501 |
-
The above is not an exhaustive list but offer some suggestions of how the dataset can be used to explore topics such as the impact of OCR quality on language models, the ‘transferability’ of language models across time or the impact of training multilingual language models on historical languages.
|
502 |
-
|
503 |
-
#### Supervised tasks
|
504 |
-
|
505 |
-
Whilst this dataset does not have annotations for a specific NLP task, such as Named Entity Recognition, it does include a wide variety of metadata. This metadata has the potential to be used for training and/or evaluating a variety of supervised tasks predicting this metadata.
|
506 |
-
|
507 |
-
### Languages
|
508 |
-
|
509 |
-
This dataset consists of books published in several languages. The breakdown of the languages included (at the page level) is:
|
510 |
-
|
511 |
-
| Language | Pages |
|
512 |
-
| --------------------- | -------- |
|
513 |
-
| English | 10039463 |
|
514 |
-
| French | 1442929 |
|
515 |
-
| German | 1172793 |
|
516 |
-
| Spanish | 286778 |
|
517 |
-
| Italian | 214255 |
|
518 |
-
| Dutch | 204759 |
|
519 |
-
| Russian | 193347 |
|
520 |
-
| Danish | 93366 |
|
521 |
-
| Hungarian | 88094 |
|
522 |
-
| Swedish | 76225 |
|
523 |
-
| Polish | 58901 |
|
524 |
-
| Greek, Modern (1453-) | 26104 |
|
525 |
-
| Latin | 25611 |
|
526 |
-
| Portuguese | 25410 |
|
527 |
-
| Czech | 20160 |
|
528 |
-
| Bulgarian | 7891 |
|
529 |
-
| Finnish | 5677 |
|
530 |
-
| Irish | 2743 |
|
531 |
-
| Serbian | 1975 |
|
532 |
-
| Romanian | 1544 |
|
533 |
-
| Norwegian Nynorsk | 1398 |
|
534 |
-
| Croatian | 1306 |
|
535 |
-
| Norwegian | 1227 |
|
536 |
-
| Icelandic | 902 |
|
537 |
-
| Slovak | 840 |
|
538 |
-
| Lithuanian | 714 |
|
539 |
-
| Welsh | 580 |
|
540 |
-
| Slovenian | 545 |
|
541 |
-
| Indonesian | 418 |
|
542 |
-
| Cornish | 223 |
|
543 |
-
|
544 |
-
This breakdown was derived from the first language in the associated metadata field. Some books include multiple languages. Some of the languages codes for this data were also derived using computational methods. Therefore, the language fields in the dataset should be treated with some caution (discussed in more detail below).
|
545 |
-
|
546 |
-
#### Language change
|
547 |
-
|
548 |
-
The publication dates of books in the data cover a broad period of time (1500-1900). For languages in the dataset with broad temporal coverage, significant [language change](https://en.wikipedia.org/wiki/Language_change) might be found. The ability to study this change by taking reasonably large samples of languages covering different time periods is one of the opportunities offered by this dataset. The fact that the text in this dataset was produced via Optical Character Recognition (OCR) causes some challenges for this type of research (see below).
|
549 |
-
|
550 |
-
#### Optical Character Recognition
|
551 |
-
|
552 |
-
The digitised books in this collection were transformed into machine-readable text using Optical Character Recognition (OCR) software. The text produced via OCR software will usually include some errors. These errors include; mistakes at the character level; for example, an `i` is mistaken for an `l`, at the word level or across significant passages of text.
|
553 |
-
|
554 |
-
The books in this dataset can pose some additional challenges for OCR software. OCR errors can stem from:
|
555 |
-
|
556 |
-
- the quality of the original printing: printing technology was a developing technology during the time period covered by this corpus; some of the original book text will include misprints, blurred or faded ink that is hard to read
|
557 |
-
- damage to the page: some of the books will have become damaged over time, this can obscure all or parts of the text on a page
|
558 |
-
- poor quality scans: scanning books can be challenging; for example, if the book has tight bindings, it can be hard to capture text that has fallen into the [gutter](https://www.abaa.org/glossary/entry/gutter) of the book.
|
559 |
-
- the language used in the books may differ from the languages OCR software is predominantly trained to recognise.
|
560 |
-
|
561 |
-
##### OCR word confidence
|
562 |
-
|
563 |
-
Many OCR engines produce some form of confidence score alongside the predicted text. These confidence scores are usually at the character or word level. The word confidence score was given for each word in the original ALTO XML versions of the text in this dataset in this dataset. The OCR confidence scores should be treated with some scepticism. For historical text or in a lower resource language, for example, a low confidence score may be more likely for words not included in a modern dictionary but may be accurate transcriptions of the original text. With that said, the confidence scores do give some sense of the OCR quality.
|
564 |
-
|
565 |
-
An example of text with a high (over 90% mean word confidence score):
|
566 |
-
|
567 |
-
```
|
568 |
-
8 direction to the Conduit, round which is a wide open space, and a good broad pavement called the Parade. It commands a pleasant peep of the slopes and terrace throughout its entire length. The street continuing from the Conduit, in the same general direction, was known anciently as Lodborne Lane, and is now named South Street. From the Conduit two other streets, at right angles to these, are Long Street, leading Eastwards, and Half-Moon Street (formerly Lodborne), leading to Westbury, Trendle Street, and the Horsecastles Road.
|
569 |
-
```
|
570 |
-
|
571 |
-
An example of text with a score below 40%:
|
572 |
-
|
573 |
-
```
|
574 |
-
Hannover. Schrift und Druck von Fr. CultniTmn,',
|
575 |
-
"LeMNs'utluirui.",
|
576 |
-
'ü 8u«llim» M^äalßwi 01de!lop 1<M.',
|
577 |
-
'p^dnalmw vom Xr^u/e, lpiti>»**Kmm lie« !»^2!M kleine lii!<! (,«>* ttünee!<»e^ v»n tndzt Lievclum, 1872,
|
578 |
-
```
|
579 |
-
|
580 |
-
The quality of OCR - as measured by mean OCR confidence for a page - across the dataset correlates with other features. A groupby of publication decade and mean word confidence:
|
581 |
-
|
582 |
-
| decade | mean_wc_ocr |
|
583 |
-
| ------ | ----------- |
|
584 |
-
| 1510 | 0.499151 |
|
585 |
-
| 1520 | 0.544818 |
|
586 |
-
| 1540 | 0.511589 |
|
587 |
-
| 1550 | 0.4505 |
|
588 |
-
| 1580 | 0.321858 |
|
589 |
-
| 1590 | 0.461282 |
|
590 |
-
| 1600 | 0.467318 |
|
591 |
-
| 1610 | 0.495895 |
|
592 |
-
| 1620 | 0.501257 |
|
593 |
-
| 1630 | 0.49766 |
|
594 |
-
| 1640 | 0.512095 |
|
595 |
-
| 1650 | 0.528534 |
|
596 |
-
| 1660 | 0.521014 |
|
597 |
-
| 1670 | 0.592575 |
|
598 |
-
| 1680 | 0.583901 |
|
599 |
-
| 1690 | 0.567202 |
|
600 |
-
| 1700 | 0.575175 |
|
601 |
-
| 1710 | 0.61436 |
|
602 |
-
| 1720 | 0.627725 |
|
603 |
-
| 1730 | 0.658534 |
|
604 |
-
| 1740 | 0.64214 |
|
605 |
-
| 1750 | 0.657357 |
|
606 |
-
| 1760 | 0.6389 |
|
607 |
-
| 1770 | 0.651883 |
|
608 |
-
| 1780 | 0.632326 |
|
609 |
-
| 1790 | 0.664279 |
|
610 |
-
| 1800 | 0.682338 |
|
611 |
-
| 1810 | 0.708915 |
|
612 |
-
| 1820 | 0.730015 |
|
613 |
-
| 1830 | 0.730973 |
|
614 |
-
| 1840 | 0.713886 |
|
615 |
-
| 1850 | 0.697106 |
|
616 |
-
| 1860 | 0.696701 |
|
617 |
-
| 1870 | 0.717233 |
|
618 |
-
| 1880 | 0.733331 |
|
619 |
-
| 1890 | 0.762364 |
|
620 |
-
|
621 |
-
As might be expected, the earlier periods have lower mean word confidence scores. Again, all of this should be treated with some scepticism, especially as the size of the data grows over time.
|
622 |
-
|
623 |
-
As with time, the mean word confidence of the OCR software varies across languages:
|
624 |
-
|
625 |
-
| Language_1 | mean_wc_ocr |
|
626 |
-
| --------------------- | ----------- |
|
627 |
-
| Croatian | 0.755565 |
|
628 |
-
| Welsh | 0.7528 |
|
629 |
-
| Norwegian Nynorsk | 0.751648 |
|
630 |
-
| Slovenian | 0.746007 |
|
631 |
-
| French | 0.740772 |
|
632 |
-
| Finnish | 0.738032 |
|
633 |
-
| Czech | 0.737849 |
|
634 |
-
| Hungarian | 0.736076 |
|
635 |
-
| Dutch | 0.734977 |
|
636 |
-
| Cornish | 0.733682 |
|
637 |
-
| Danish | 0.733106 |
|
638 |
-
| English | 0.733037 |
|
639 |
-
| Irish | 0.732658 |
|
640 |
-
| Portuguese | 0.727746 |
|
641 |
-
| Spanish | 0.725111 |
|
642 |
-
| Icelandic | 0.724427 |
|
643 |
-
| Italian | 0.715839 |
|
644 |
-
| Swedish | 0.715633 |
|
645 |
-
| Polish | 0.715133 |
|
646 |
-
| Lithuanian | 0.700003 |
|
647 |
-
| Bulgarian | 0.694657 |
|
648 |
-
| Romanian | 0.692957 |
|
649 |
-
| Latin | 0.689022 |
|
650 |
-
| Russian | 0.685847 |
|
651 |
-
| Serbian | 0.674329 |
|
652 |
-
| Slovak | 0.66739 |
|
653 |
-
| Greek, Modern (1453-) | 0.632195 |
|
654 |
-
| German | 0.631457 |
|
655 |
-
| Indonesian | 0.6155 |
|
656 |
-
| Norwegian | 0.597987 |
|
657 |
-
|
658 |
-
Again, these numbers should be treated sceptically since some languages appear very infrequently. For example, the above table suggests the mean word confidence for Welsh is relatively high. However, there isn’t much Welsh in the dataset. Therefore, it is unlikely that this data will be particularly useful for training (historic) Welsh language models.
|
659 |
-
|
660 |
-
[More Information Needed]
|
661 |
-
|
662 |
-
## Dataset Structure
|
663 |
-
|
664 |
-
The dataset has a number of configurations relating to the different dates of publication in the underlying data:
|
665 |
-
|
666 |
-
- `1500_1899`: this configuration covers all years
|
667 |
-
- `1800_1899`: this configuration covers the years between 1800 and 1899
|
668 |
-
- `1700_1799`: this configuration covers the years between 1700 and 1799
|
669 |
-
- `1510_1699`: this configuration covers the years between 1510 and 1699
|
670 |
-
|
671 |
-
### Configuration option
|
672 |
-
|
673 |
-
All of the configurations have an optional keyword argument `skip_empty_pages` which is set to `True` by default. The underlying dataset includes some pages where there is no text. This could either be because the underlying book page didn't have any text or the OCR software failed to detect this text.
|
674 |
-
|
675 |
-
For many uses of this dataset it doesn't make sense to include empty pages so these are skipped by default. However, for some uses you may prefer to retain a representation of the data that includes these empty pages. Passing `skip_empty_pages=False` when loading the dataset will enable this option.
|
676 |
-
|
677 |
-
### Data Instances
|
678 |
-
|
679 |
-
An example data instance:
|
680 |
-
|
681 |
-
```python
|
682 |
-
{'Country of publication 1': 'England',
|
683 |
-
'Language_1': 'English',
|
684 |
-
'Language_2': None,
|
685 |
-
'Language_3': None,
|
686 |
-
'Language_4': None,
|
687 |
-
'Physical description': None,
|
688 |
-
'Publisher': None,
|
689 |
-
'all Countries of publication': 'England',
|
690 |
-
'all names': 'Settle, Elkanah [person]',
|
691 |
-
'date': 1689,
|
692 |
-
'empty_pg': True,
|
693 |
-
'mean_wc_ocr': 0.0,
|
694 |
-
'multi_language': False,
|
695 |
-
'name': 'Settle, Elkanah',
|
696 |
-
'pg': 1,
|
697 |
-
'place': 'London',
|
698 |
-
'raw_date': '1689',
|
699 |
-
'record_id': '001876770',
|
700 |
-
'std_wc_ocr': 0.0,
|
701 |
-
'text': None,
|
702 |
-
‘title’: ‘The Female Prelate: being the history and the life and death of Pope Joan. A tragedy [in five acts and in verse] . Written by a Person of Quality [i.e. Elkanah Settle]’}
|
703 |
-
|
704 |
-
```
|
705 |
-
|
706 |
-
Each instance in the dataset represents a single page from an original digitised book.
|
707 |
-
|
708 |
-
### Data Fields
|
709 |
-
|
710 |
-
Included in this dataset are:
|
711 |
-
|
712 |
-
| Field | Data Type | Description |
|
713 |
-
| ---------------------------- | --------- | ------------------------------------------------------------------------------------------------------------- |
|
714 |
-
| record_id | string | British Library ID for the item |
|
715 |
-
| date | int | parsed/normalised year for the item. i.e. 1850 |
|
716 |
-
| raw_date | string | the original raw date for an item i.e. 1850- |
|
717 |
-
| title | string | title of the book |
|
718 |
-
| place | string | Place of publication, i.e. London |
|
719 |
-
| empty_pg | bool | whether page contains text |
|
720 |
-
| text | string | OCR generated text for a page |
|
721 |
-
| pg | int | page in original book the instance refers to |
|
722 |
-
| mean_wc_ocr | float | mean word confidence values for the page |
|
723 |
-
| std_wc_ocr | float | standard deviation of the word confidence values for the page |
|
724 |
-
| name | string | name associated with the item (usually author) |
|
725 |
-
| all names | string | all names associated with a publication |
|
726 |
-
| Publisher | string | publisher of the book |
|
727 |
-
| Country of publication 1 | string | first country associated with publication |
|
728 |
-
| all Countries of publication | string | all countries associated with a publication |
|
729 |
-
| Physical description | string | physical description of the item (size). This requires some normalisation before use and isn’t always present |
|
730 |
-
| Language_1 | string | first language associated with the book, this is usually present |
|
731 |
-
| Language_2 | string | |
|
732 |
-
| Language_3 | string | |
|
733 |
-
| Language_4 | string | |
|
734 |
-
| multi_language | bool | |
|
735 |
-
|
736 |
-
Some of these fields are not populated a large proportion of the time. You can get some sense of this from this [Pandas Profiling](https://github.com/pandas-profiling/pandas-profiling) [report](https://davanstrien.github.io/BL-datasets-pandas-profile-reports/pandas_profile_report_MS_digitised_books_2021-01-09.html)
|
737 |
-
|
738 |
-
The majority of these fields relate to metadata about the books. Most of these fields were created by staff working for the British Library. The notable exception is the “Languages” fields that have sometimes been determined using computational methods. This work is reported in more detail in [Automated Language Identification of Bibliographic Resources](https://doi.org/10.1080/01639374.2019.1700201). It is important to note that metadata is neither perfect nor static. The metadata associated with this book was generated based on export from the British Library catalogue in 2021.
|
739 |
-
|
740 |
-
[More Information Needed]
|
741 |
-
|
742 |
-
### Data Splits
|
743 |
-
|
744 |
-
This dataset contains a single split `train`.
|
745 |
-
|
746 |
-
## Dataset Creation
|
747 |
-
|
748 |
-
**Note** this section is a work in progress.
|
749 |
-
|
750 |
-
### Curation Rationale
|
751 |
-
|
752 |
-
The books in this collection were digitised as part of a project partnership between the British Library and Microsoft. [Mass digitisation](https://en.wikipedia.org/wiki/Category:Mass_digitization), i.e. projects intending to quickly digitise large volumes of materials shape the selection of materials to include in several ways. Some considerations which are often involved in the decision of whether to include items for digitisation include (but are not limited to):
|
753 |
-
|
754 |
-
- copyright status
|
755 |
-
- preservation needs
|
756 |
-
- the size of an item, very large and very small items are often hard to digitise quickly
|
757 |
-
|
758 |
-
These criteria can have knock-on effects on the makeup of a collection. For example, systematically excluding large books may result in some types of book content not being digitised. Large volumes are likely to be correlated to content to at least some extent, so excluding them from digitisation will mean that material is underrepresented. Similarly, copyright status is often (but not only) determined by publication date. This can often lead to a rapid fall in the number of items in a collection after a certain cut-off date.
|
759 |
-
|
760 |
-
All of the above is largely to make clear that this collection was not curated to create a representative sample of the British Library’s holdings. Some material will be over-represented, and others under-represented. Similarly, the collection should not be considered a representative sample of what was published across the period covered by the dataset (nor that the relative proportions of the data for each time period represent a proportional sample of publications from that period). Finally, and this probably does not need stating, the language included in the text should not be considered representative of either written or spoken language(s) from that time period.
|
761 |
-
|
762 |
-
[More Information Needed]
|
763 |
-
|
764 |
-
### Source Data
|
765 |
-
|
766 |
-
The source data (physical items) includes a variety of resources (predominantly monographs) held by the [British Library](bl.uk/](https://bl.uk/). The British Library is a [Legal Deposit](https://www.bl.uk/legal-deposit/about-legal-deposit) library. “Legal deposit requires publishers to provide a copy of every work they publish in the UK to the British Library. It’s existed in English law since 1662.” [source](https://www.bl.uk/legal-deposit/about-legal-deposit).
|
767 |
-
|
768 |
-
The source data for this version of the data is derived from the original ALTO XML files and a recent metadata export #TODO add links
|
769 |
-
|
770 |
-
[More Information Needed]
|
771 |
-
|
772 |
-
#### Initial Data Collection and Normalization
|
773 |
-
|
774 |
-
This version of the dataset was created using the original ALTO XML files and, where a match was found, updating the metadata associated with that item with more recent metadata using an export from the British Library catalogue. The process of creating this new dataset is documented here #TODO add link.
|
775 |
-
|
776 |
-
There are a few decisions made in the above processing steps worth highlighting in particular:
|
777 |
-
|
778 |
-
##### Date normalization
|
779 |
-
|
780 |
-
The metadata around date of publication for an item is not always exact. It often is represented as a date range e.g. `1850-1860`. The `date` field above takes steps to normalise this date to a single integer value. In most cases, this is taking the mean of the values associated with the item. The `raw_date` field includes the unprocessed date string.
|
781 |
-
|
782 |
-
##### Metadata included
|
783 |
-
|
784 |
-
The metadata associated with each item includes most of the fields available via the ALTO XML. However, the data doesn’t include some metadata fields from the metadata export file. The reason fields were excluded because they are frequently not populated. A cut off of 50% was chosen, i.e. values from the metadata which are missing above 50% of the time were not included. This is slightly arbitrary, but since the aim of this version of the data was to support computational research using the collection it was felt that these fields with frequent missing values would be less valuable.
|
785 |
-
|
786 |
-
#### Who are the source language producers?
|
787 |
-
|
788 |
-
[More Information Needed]
|
789 |
-
|
790 |
-
### Annotations
|
791 |
-
|
792 |
-
This dataset does not include annotations as usually understood in the context of NLP. The data does include metadata associated with the books.
|
793 |
-
|
794 |
-
#### Annotation process
|
795 |
-
|
796 |
-
[More Information Needed]
|
797 |
-
|
798 |
-
#### Who are the annotators?
|
799 |
-
|
800 |
-
[More Information Needed]
|
801 |
-
|
802 |
-
### Personal and Sensitive Information
|
803 |
-
|
804 |
-
[More Information Needed]
|
805 |
-
|
806 |
-
## Considerations for Using the Data
|
807 |
-
|
808 |
-
There a range of considerations around using the data. These include the representativeness of the dataset, the OCR quality and the language used. Depending on your use case, these may be more or less important. For example, the impact of OCR quality on downstream tasks will depend on the target task. It may also be possible to mitigate this negative impact from OCR through tokenizer choice, Language Model training objectives, oversampling high-quality OCR, etc.
|
809 |
-
|
810 |
-
[More Information Needed]
|
811 |
-
|
812 |
-
### Social Impact of Dataset
|
813 |
-
|
814 |
-
[More Information Needed]
|
815 |
-
|
816 |
-
### Discussion of Biases
|
817 |
-
|
818 |
-
The text in this collection is derived from historical text. As a result, the text will reflect this time period's social beliefs and attitudes. The books include both fiction and non-fiction books.
|
819 |
-
|
820 |
-
Examples of book titles that appear in the data (these are randomly sampled from all titles):
|
821 |
-
|
822 |
-
- ‘Rhymes and Dreams, Legends of Pendle Forest, and other poems’,
|
823 |
-
- “Précis of Information concerning the Zulu Country, with a map. Prepared in the Intelligence Branch of the Quarter-Master-General’s Department, Horse Guards, War Office, etc”,
|
824 |
-
- ‘The fan. A poem’,
|
825 |
-
- ‘Grif; a story of Australian Life’,
|
826 |
-
- ‘Calypso; a masque: in three acts, etc’,
|
827 |
-
- ‘Tales Uncle told [With illustrative woodcuts.]’,
|
828 |
-
- 'Questings',
|
829 |
-
- 'Home Life on an Ostrich Farm. With ... illustrations’,
|
830 |
-
- ‘Bulgarya i Bulgarowie’,
|
831 |
-
- 'Εἰς τα βαθη της Ἀφρικης [In darkest Africa.] ... Μεταφρασις Γεωρ. Σ. Βουτσινα, etc',
|
832 |
-
- ‘The Corsair, a tale’,
|
833 |
-
‘Poems ... With notes [With a portrait.]’,
|
834 |
-
- ‘Report of the Librarian for the year 1898 (1899, 1901, 1909)’,
|
835 |
-
- “The World of Thought. A novel. By the author of ‘Before I began to speak.’”,
|
836 |
-
- 'Amleto; tragedia ... recata in versi italiani da M. Leoni, etc']
|
837 |
-
|
838 |
-
While using titles alone is insufficient to integrate bias in this collection, it gives some insight into the topics covered by books. Further, the tiles highlight some particular types of bias we might find in the collection. This should in no way be considered an exhaustive list.
|
839 |
-
|
840 |
-
#### Colonialism
|
841 |
-
|
842 |
-
Even in the above random sample of titles examples of colonial attitudes, we can see examples of titles. We can try and interrogate this further by searching for the name of places that were part of the British Empire when many of these books were published.
|
843 |
-
|
844 |
-
Searching for the string `India` in the titles and randomly sampling 10 titles returns:
|
845 |
-
|
846 |
-
- “Travels in India in the Seventeenth Century: by Sir Thomas Roe and Dr. John Fryer. Reprinted from the ‘Calcutta Weekly Englishman.’”,
|
847 |
-
- ‘A Winter in India and Malaysia among the Methodist Missions’,
|
848 |
-
- “The Tourist’s Guide to all the principal stations on the railways of Northern India [By W. W.] ... Fifth edition”,
|
849 |
-
- ‘Records of Sport and Military Life in Western India ... With an introduction by ... G. B. Malleson’,
|
850 |
-
- "Lakhmi, the Rájpút's Bride. A tale of Gujarát in Western India [A poem.]”,
|
851 |
-
- ‘The West India Commonplace Book: compiled from parliamentary and official documents; shewing the interest of Great Britain in its Sugar Colonies’,
|
852 |
-
- “From Tonkin to India : by the sources of the Irawadi, January’ 95-January ’96”,
|
853 |
-
- ‘Case of the Ameers of Sinde : speeches of Mr. John Sullivan, and Captain William Eastwick, at a special court held at the India House, ... 26th January, 1844’,
|
854 |
-
- ‘The Andaman Islands; their colonisation, etc. A correspondence addressed to the India Office’,
|
855 |
-
- ‘Ancient India as described by Ptolemy; being a translation of the chapters which describe India and Eastern Asia in the treatise on Geography written by Klaudios Ptolemaios ... with introduction, commentary, map of India according to Ptolemy, and ... index, by J. W. McCrindle’]
|
856 |
-
|
857 |
-
Searching form the string `Africa` in the titles and randomly sampling 10 titles returns:
|
858 |
-
|
859 |
-
- ['De Benguella ás Terras de Iácca. Descripção de uma viagem na Africa Central e Occidental ... Expedição organisada nos annos de 1877-1880. Edição illustrada',
|
860 |
-
- ‘To the New Geographical Society of Edinburgh [An address on Africa by H. M. Stanley.]’,
|
861 |
-
- ‘Diamonds and Gold in South Africa ... With maps, etc’,
|
862 |
-
- ‘Missionary Travels and Researches in South Africa ... With notes by F. S. Arnot. With map and illustrations. New edition’,
|
863 |
-
- ‘A Narrative of a Visit to the Mauritius and South Africa ... Illustrated by two maps, sixteen etchings and twenty-eight wood-cuts’,
|
864 |
-
- ‘Side Lights on South Africa ... With a map, etc’,
|
865 |
-
- ‘My Second Journey through Equatorial Africa ... in ... 1886 and 1887 ... Translated ... by M. J. A. Bergmann. With a map ... and ... illustrations, etc’,
|
866 |
-
- ‘Missionary Travels and Researches in South Africa ... With portrait and fullpage illustrations’,
|
867 |
-
- ‘[African sketches.] Narrative of a residence in South Africa ... A new edition. To which is prefixed a biographical sketch of the author by J. Conder’,
|
868 |
-
- ‘Lake Ngami; or, Explorations and discoveries during four years wandering in the wilds of South Western Africa ... With a map, and numerous illustrations, etc’]
|
869 |
-
|
870 |
-
[More Information Needed]
|
871 |
-
|
872 |
-
### Other Known Limitations
|
873 |
-
|
874 |
-
[More Information Needed]
|
875 |
-
|
876 |
-
## Additional Information
|
877 |
-
|
878 |
-
### Dataset Curators
|
879 |
-
|
880 |
-
[More Information Needed]
|
881 |
-
|
882 |
-
### Licensing Information
|
883 |
-
|
884 |
-
The books are licensed under the [CC Public Domain Mark 1.0](https://creativecommons.org/publicdomain/mark/1.0/) license.
|
885 |
-
|
886 |
-
### Citation Information
|
887 |
-
|
888 |
-
```bibtext
|
889 |
-
@misc{bBritishLibraryBooks2021,
|
890 |
-
author = {British Library Labs},
|
891 |
-
title = {Digitised Books. c. 1510 - c. 1900. JSONL (OCR derived text + metadata)},
|
892 |
-
year = {2021},
|
893 |
-
publisher = {British Library},
|
894 |
-
howpublished={https://doi.org/10.23636/r7w6-zy15}
|
895 |
-
|
896 |
-
```
|
897 |
-
|
898 |
-
### Contributions
|
899 |
-
|
900 |
-
Thanks to [@davanstrien](https://github.com/davanstrien) for adding this dataset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
blbooks.py
DELETED
@@ -1,234 +0,0 @@
|
|
1 |
-
# coding=utf-8
|
2 |
-
# Copyright 2022 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors.
|
3 |
-
#
|
4 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
-
# you may not use this file except in compliance with the License.
|
6 |
-
# You may obtain a copy of the License at
|
7 |
-
#
|
8 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9 |
-
#
|
10 |
-
# Unless required by applicable law or agreed to in writing, software
|
11 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
-
# See the License for the specific language governing permissions and
|
14 |
-
# limitations under the License.
|
15 |
-
import gzip
|
16 |
-
import json
|
17 |
-
from datetime import datetime
|
18 |
-
from functools import lru_cache
|
19 |
-
from typing import Dict, List
|
20 |
-
|
21 |
-
import datasets
|
22 |
-
from datasets.tasks import LanguageModeling
|
23 |
-
|
24 |
-
|
25 |
-
_CITATION = """\
|
26 |
-
@misc{BritishLibraryBooks2021,
|
27 |
-
author = {British Library Labs},
|
28 |
-
title = {Digitised Books. c. 1510 - c. 1900. JSONL (OCR derived text + metadata)},
|
29 |
-
year = {2021},
|
30 |
-
publisher = {British Library},
|
31 |
-
howpublished={https://doi.org/10.23636/r7w6-zy15}
|
32 |
-
"""
|
33 |
-
|
34 |
-
_DESCRIPTION = """\
|
35 |
-
A dataset comprising of text created by OCR from the 49,455 digitised books, equating to 65,227 volumes (25+ million pages), published between c. 1510 - c. 1900.
|
36 |
-
The books cover a wide range of subject areas including philosophy, history, poetry and literature.
|
37 |
-
"""
|
38 |
-
|
39 |
-
_BASE_URL = "https://bl.iro.bl.uk/downloads/"
|
40 |
-
|
41 |
-
|
42 |
-
_DATA_URLS = {
|
43 |
-
"1510_1699": _BASE_URL + "61f58234-b370-422f-8591-8f98e46c2757?locale=en",
|
44 |
-
"1700_1799": _BASE_URL + "78b4a8ec-395e-4383-831c-809faff85ad7?locale=en",
|
45 |
-
"1800_1809": _BASE_URL + "91ae15cb-e08f-4abf-8396-e4742d9d4e37?locale=en",
|
46 |
-
"1810_1819": _BASE_URL + "6d1a6e17-f28d-45b9-8f7a-a03cf3a96491?locale=en",
|
47 |
-
"1820_1829": _BASE_URL + "ec764dbd-1ed4-4fc2-8668-b4df5c8ec451?locale=en",
|
48 |
-
"1830_1839": _BASE_URL + "eab68022-0418-4df7-a401-78972514ed20?locale=en",
|
49 |
-
"1840_1849": _BASE_URL + "d16d88b0-aa3f-4dfe-b728-c58d168d7b4d?locale=en",
|
50 |
-
"1850_1859": _BASE_URL + "a6a44ea8-8d33-4880-8b17-f89c90e3d89a?locale=en",
|
51 |
-
"1860_1869": _BASE_URL + "2e17f00f-52e6-4259-962c-b88ad60dec23?locale=en",
|
52 |
-
"1870_1879": _BASE_URL + "899c3719-030c-4517-abd3-b28fdc85eed4?locale=en",
|
53 |
-
"1880_1889": _BASE_URL + "ec3b8545-775b-47bd-885d-ce895263709e?locale=en",
|
54 |
-
"1890_1899": _BASE_URL + "54ed2842-089a-439a-b751-2179b3ffba28?locale=en",
|
55 |
-
}
|
56 |
-
|
57 |
-
_ALL = list(_DATA_URLS.values())
|
58 |
-
_1800_1899 = [
|
59 |
-
_DATA_URLS.get(subset)
|
60 |
-
for subset in [
|
61 |
-
"1800_1809",
|
62 |
-
"1810_1819",
|
63 |
-
"1820_1829",
|
64 |
-
"1830_1839",
|
65 |
-
"1840_1849",
|
66 |
-
"1850_1859",
|
67 |
-
"1860_1869",
|
68 |
-
"1870_1879",
|
69 |
-
"1880_1889",
|
70 |
-
"1890_1899",
|
71 |
-
]
|
72 |
-
]
|
73 |
-
_1700_1799 = [_DATA_URLS.get(subset) for subset in ["1700_1799"]]
|
74 |
-
_1510_1699 = [_DATA_URLS.get(subset) for subset in ["1510_1699"]]
|
75 |
-
|
76 |
-
URL = "https://doi.org/10.23636/r7w6-zy15"
|
77 |
-
|
78 |
-
features = datasets.Features(
|
79 |
-
{
|
80 |
-
"record_id": datasets.Value("string"),
|
81 |
-
"date": datasets.Value("timestamp[s]"),
|
82 |
-
"raw_date": datasets.Value("string"),
|
83 |
-
"title": datasets.Value("string"),
|
84 |
-
"place": datasets.Value("string"),
|
85 |
-
"empty_pg": datasets.Value("bool"),
|
86 |
-
"text": datasets.Value("string"),
|
87 |
-
"pg": datasets.Value("int32"),
|
88 |
-
"mean_wc_ocr": datasets.Value("float32"),
|
89 |
-
"std_wc_ocr": datasets.Value("float64"),
|
90 |
-
"name": datasets.Value("string"),
|
91 |
-
"all_names": datasets.Value("string"),
|
92 |
-
"Publisher": datasets.Value("string"),
|
93 |
-
"Country of publication 1": datasets.Value("string"),
|
94 |
-
"all Countries of publication": datasets.Value("string"),
|
95 |
-
"Physical description": datasets.Value("string"),
|
96 |
-
"Language_1": datasets.Value("string"),
|
97 |
-
"Language_2": datasets.Value("string"),
|
98 |
-
"Language_3": datasets.Value("string"),
|
99 |
-
"Language_4": datasets.Value("string"),
|
100 |
-
"multi_language": datasets.Value("bool"),
|
101 |
-
}
|
102 |
-
)
|
103 |
-
|
104 |
-
|
105 |
-
class BritishLibraryBooksConfig(datasets.BuilderConfig):
|
106 |
-
"""BuilderConfig for BritishLibraryBooks."""
|
107 |
-
|
108 |
-
def __init__(self, data_urls, citation, url, skip_empty=False, **kwargs):
|
109 |
-
"""BuilderConfig for BritishLibraryBooks.
|
110 |
-
|
111 |
-
Args:
|
112 |
-
data_url: `string`, url to download the zip file from.
|
113 |
-
citation: `string`, citation for the data set.
|
114 |
-
url: `string`, url for information about the data set.
|
115 |
-
skip_empty: `bool`, whether to skip empty pages.
|
116 |
-
**kwargs: keyword arguments forwarded to super.
|
117 |
-
"""
|
118 |
-
|
119 |
-
super(BritishLibraryBooksConfig, self).__init__(version=datasets.Version("1.0.2"), **kwargs)
|
120 |
-
self.url: str = url
|
121 |
-
self.data_urls: List[str] = data_urls
|
122 |
-
self.citation: str = citation
|
123 |
-
self.skip_empty: bool = skip_empty
|
124 |
-
|
125 |
-
|
126 |
-
class BritishLibraryBooks(datasets.GeneratorBasedBuilder):
|
127 |
-
"""The BritishLibraryBooks dataset."""
|
128 |
-
|
129 |
-
BUILDER_CONFIGS = [
|
130 |
-
BritishLibraryBooksConfig(
|
131 |
-
name="1500_1899",
|
132 |
-
description="All periods of" + _DESCRIPTION,
|
133 |
-
data_urls=_ALL,
|
134 |
-
citation=_CITATION,
|
135 |
-
url=URL,
|
136 |
-
skip_empty=True,
|
137 |
-
),
|
138 |
-
BritishLibraryBooksConfig(
|
139 |
-
name="1800_1899",
|
140 |
-
description="A subset covering texts published during the 1800-1899 of" + _DESCRIPTION,
|
141 |
-
data_urls=_1800_1899,
|
142 |
-
citation=_CITATION,
|
143 |
-
url=URL,
|
144 |
-
skip_empty=True,
|
145 |
-
),
|
146 |
-
BritishLibraryBooksConfig(
|
147 |
-
name="1700_1799",
|
148 |
-
description="Subset covering 1700-1799 of" + _DESCRIPTION,
|
149 |
-
data_urls=_1700_1799,
|
150 |
-
citation=_CITATION,
|
151 |
-
url=URL,
|
152 |
-
skip_empty=True,
|
153 |
-
),
|
154 |
-
BritishLibraryBooksConfig(
|
155 |
-
name="1510_1699",
|
156 |
-
description="Subset covering 1510-1699 of " + _DESCRIPTION,
|
157 |
-
data_urls=_1510_1699,
|
158 |
-
citation=_CITATION,
|
159 |
-
url=URL,
|
160 |
-
skip_empty=True,
|
161 |
-
),
|
162 |
-
]
|
163 |
-
|
164 |
-
DEFAULT_CONFIG_NAME = "1500_1899"
|
165 |
-
|
166 |
-
def _info(self):
|
167 |
-
return datasets.DatasetInfo(
|
168 |
-
description=_DESCRIPTION,
|
169 |
-
features=features,
|
170 |
-
supervised_keys=None,
|
171 |
-
homepage="https://www.bl.uk/collection-guides/digitised-printed-books",
|
172 |
-
citation=_CITATION,
|
173 |
-
task_templates=[LanguageModeling(text_column="text")],
|
174 |
-
)
|
175 |
-
|
176 |
-
def _split_generators(self, dl_manager: datasets.DownloadManager):
|
177 |
-
urls_to_download = self.config.data_urls
|
178 |
-
downloaded_archives = dl_manager.download(urls_to_download)
|
179 |
-
downloaded_archives = [dl_manager.iter_archive(archive) for archive in downloaded_archives]
|
180 |
-
return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"data_dirs": downloaded_archives})]
|
181 |
-
|
182 |
-
@lru_cache(maxsize=512)
|
183 |
-
def _parse_date(self, date):
|
184 |
-
if date is not None:
|
185 |
-
date = datetime.strptime(str(date), "%Y")
|
186 |
-
return date
|
187 |
-
|
188 |
-
def _parse_data(self, data: Dict) -> Dict:
|
189 |
-
mean_wc_ocr = data["mean_wc_ocr"]
|
190 |
-
mean_wc_ocr = float(mean_wc_ocr) if mean_wc_ocr else None
|
191 |
-
std_wc_ocr = data["std_wc_ocr"]
|
192 |
-
std_wc_ocr = float(data["std_wc_ocr"]) if std_wc_ocr else None
|
193 |
-
date = data["date"]
|
194 |
-
if date is not None:
|
195 |
-
date = datetime.strptime(str(date), "%Y")
|
196 |
-
return {
|
197 |
-
"record_id": data["record_id"],
|
198 |
-
"date": date,
|
199 |
-
"raw_date": data["raw_date"],
|
200 |
-
"title": data["title"],
|
201 |
-
"place": data["place"],
|
202 |
-
"text": data["text"],
|
203 |
-
"pg": int(data["pg"]),
|
204 |
-
"mean_wc_ocr": data["mean_wc_ocr"],
|
205 |
-
"std_wc_ocr": std_wc_ocr,
|
206 |
-
"name": data["Name"],
|
207 |
-
"all_names": data["All names"],
|
208 |
-
"Publisher": data["Publisher"],
|
209 |
-
"Country of publication 1": data["Country of publication 1"],
|
210 |
-
"all Countries of publication": data["All Countries of publication"],
|
211 |
-
"Physical description": data["Physical description"],
|
212 |
-
"Language_1": data["Language_1"],
|
213 |
-
"Language_2": data["Language_2"],
|
214 |
-
"Language_3": data["Language_3"],
|
215 |
-
"Language_4": data["Language_4"],
|
216 |
-
"multi_language": data["multi_language"],
|
217 |
-
}
|
218 |
-
|
219 |
-
def _generate_examples(self, data_dirs):
|
220 |
-
skip_empty = self.config.skip_empty
|
221 |
-
id_ = 0
|
222 |
-
for data_dir in data_dirs:
|
223 |
-
for path, file in data_dir:
|
224 |
-
if not path.endswith(".gz"):
|
225 |
-
continue
|
226 |
-
with gzip.open(file) as json_l:
|
227 |
-
for row in json_l:
|
228 |
-
data = json.loads(row)
|
229 |
-
empty_pg = data["empty_pg"]
|
230 |
-
if skip_empty and empty_pg:
|
231 |
-
continue
|
232 |
-
parsed_data = self._parse_data(data)
|
233 |
-
yield id_, {**parsed_data, **{"empty_pg": empty_pg}}
|
234 |
-
id_ += 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataset_infos.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"all": {"description": "A dataset comprising of text created by OCR from the 49,455 digitised books, equating to 65,227 volumes (25+ million pages), published between c. 1510 - c. 1900.\nThe books cover a wide range of subject areas including philosophy, history, poetry and literature.\n", "citation": "@misc{bllabs2021,\n author = {British Library Labs},\n title = {Digitised Books. c. 1510 - c. 1900. JSONL (OCR derived text + metadata)},\n year = {2021},\n publisher = {British Library},\n howpublished={https://doi.org/10.23636/r7w6-zy15}\n", "homepage": "https://www.bl.uk/collection-guides/digitised-printed-books", "license": "", "features": {"record_id": {"dtype": "string", "id": null, "_type": "Value"}, "date": {"dtype": "int32", "id": null, "_type": "Value"}, "raw_date": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "place": {"dtype": "string", "id": null, "_type": "Value"}, "empty_pg": {"dtype": "bool", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "pg": {"dtype": "int32", "id": null, "_type": "Value"}, "mean_wc_ocr": {"dtype": "float32", "id": null, "_type": "Value"}, "std_wc_ocr": {"dtype": "float64", "id": null, "_type": "Value"}, "name": {"dtype": "string", "id": null, "_type": "Value"}, "all_names": {"dtype": "string", "id": null, "_type": "Value"}, "Publisher": {"dtype": "string", "id": null, "_type": "Value"}, "Country of publication 1": {"dtype": "string", "id": null, "_type": "Value"}, "all Countries of publication": {"dtype": "string", "id": null, "_type": "Value"}, "Physical description": {"dtype": "string", "id": null, "_type": "Value"}, "Language_1": {"dtype": "string", "id": null, "_type": "Value"}, "Language_2": {"dtype": "string", "id": null, "_type": "Value"}, "Language_3": {"dtype": "string", "id": null, "_type": "Value"}, "Language_4": {"dtype": "string", "id": null, "_type": "Value"}, "multi_language": {"dtype": "bool", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "language-modeling", "text_column": "text"}], "builder_name": "british_library_books", "config_name": "all", "version": {"version_str": "1.0.2", "description": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"train": {"name": "train", "num_bytes": 30394267732, "num_examples": 14011953, "dataset_name": "british_library_books"}}, "download_checksums": {"https://bl.iro.bl.uk/downloads/61f58234-b370-422f-8591-8f98e46c2757?locale=en": {"num_bytes": 42320165, "checksum": "6795dd54f6b489f9fcd9146bdd6d5d9abdcb34e1492e7a283b720936292ac599"}, "https://bl.iro.bl.uk/downloads/78b4a8ec-395e-4383-831c-809faff85ad7?locale=en": {"num_bytes": 95137895, "checksum": "da6ca8597b7e65c0be51b239f5aa06462419970332c2c82308b8f2e1fe66b58e"}, "https://bl.iro.bl.uk/downloads/91ae15cb-e08f-4abf-8396-e4742d9d4e37?locale=en": {"num_bytes": 178669204, "checksum": "fb78f4c5b46bb9013c5d261d531771faf5e931a329c3b5f7a07854ce2ba523e0"}, "https://bl.iro.bl.uk/downloads/6d1a6e17-f28d-45b9-8f7a-a03cf3a96491?locale=en": {"num_bytes": 283713235, "checksum": "015c76358b83f868afb72444d7a46583e3f3b002176fe7cd5b393216ce5cd2b8"}, "https://bl.iro.bl.uk/downloads/ec764dbd-1ed4-4fc2-8668-b4df5c8ec451?locale=en": {"num_bytes": 383417283, "checksum": "0e0c27465ac18593ef7132985fc736b6c24d21551015327f9e3662cdf402760c"}, "https://bl.iro.bl.uk/downloads/eab68022-0418-4df7-a401-78972514ed20?locale=en": {"num_bytes": 472114735, "checksum": "82a5d00f0e3115bab44e9223b936d0114dd9299767ee3e8a2f749d0ebb60b3b4"}, "https://bl.iro.bl.uk/downloads/d16d88b0-aa3f-4dfe-b728-c58d168d7b4d?locale=en": {"num_bytes": 896281411, "checksum": "87cc662769eb445f9b429a29d7b7f933568719ff37640d08a7c677ee31f4f206"}, "https://bl.iro.bl.uk/downloads/a6a44ea8-8d33-4880-8b17-f89c90e3d89a?locale=en": {"num_bytes": 1327206960, "checksum": "1091a8316519888a0cf9b8dbc6a1084ef23b9d756b75d2ae14229570aa8f8024"}, "https://bl.iro.bl.uk/downloads/2e17f00f-52e6-4259-962c-b88ad60dec23?locale=en": {"num_bytes": 1297572144, "checksum": "dbe664a178dc52bc60f1600a7ebf339a4e5431a578a03c2e8ad45cde8ac8c71b"}, "https://bl.iro.bl.uk/downloads/899c3719-030c-4517-abd3-b28fdc85eed4?locale=en": {"num_bytes": 1486429823, "checksum": "0fb963b2273d9f1c040f20fd77ebc33d6d8fdaec6b3f39b7f9e97faf856b7b9e"}, "https://bl.iro.bl.uk/downloads/ec3b8545-775b-47bd-885d-ce895263709e?locale=en": {"num_bytes": 1890726047, "checksum": "b17d1126462b29d904c60e5269f86a4f321069421d72f14052c83c769ce34c50"}, "https://bl.iro.bl.uk/downloads/54ed2842-089a-439a-b751-2179b3ffba28?locale=en": {"num_bytes": 2132446760, "checksum": "9805bbabe285b90cb1f6a3b79a88918aa1c03b9799432775e16f7fd862443196"}}, "download_size": 10486035662, "post_processing_size": null, "dataset_size": 30394267732, "size_in_bytes": 40880303394}, "1800s": {"description": "A dataset comprising of text created by OCR from the 49,455 digitised books, equating to 65,227 volumes (25+ million pages), published between c. 1510 - c. 1900.\nThe books cover a wide range of subject areas including philosophy, history, poetry and literature.\n", "citation": "@misc{bllabs2021,\n author = {British Library Labs},\n title = {Digitised Books. c. 1510 - c. 1900. JSONL (OCR derived text + metadata)},\n year = {2021},\n publisher = {British Library},\n howpublished={https://doi.org/10.23636/r7w6-zy15}\n", "homepage": "https://www.bl.uk/collection-guides/digitised-printed-books", "license": "", "features": {"record_id": {"dtype": "string", "id": null, "_type": "Value"}, "date": {"dtype": "int32", "id": null, "_type": "Value"}, "raw_date": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "place": {"dtype": "string", "id": null, "_type": "Value"}, "empty_pg": {"dtype": "bool", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "pg": {"dtype": "int32", "id": null, "_type": "Value"}, "mean_wc_ocr": {"dtype": "float32", "id": null, "_type": "Value"}, "std_wc_ocr": {"dtype": "float64", "id": null, "_type": "Value"}, "name": {"dtype": "string", "id": null, "_type": "Value"}, "all_names": {"dtype": "string", "id": null, "_type": "Value"}, "Publisher": {"dtype": "string", "id": null, "_type": "Value"}, "Country of publication 1": {"dtype": "string", "id": null, "_type": "Value"}, "all Countries of publication": {"dtype": "string", "id": null, "_type": "Value"}, "Physical description": {"dtype": "string", "id": null, "_type": "Value"}, "Language_1": {"dtype": "string", "id": null, "_type": "Value"}, "Language_2": {"dtype": "string", "id": null, "_type": "Value"}, "Language_3": {"dtype": "string", "id": null, "_type": "Value"}, "Language_4": {"dtype": "string", "id": null, "_type": "Value"}, "multi_language": {"dtype": "bool", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "language-modeling", "text_column": "text"}], "builder_name": "british_library_books", "config_name": "1800s", "version": {"version_str": "1.0.2", "description": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"train": {"name": "train", "num_bytes": 30020434670, "num_examples": 13781747, "dataset_name": "british_library_books"}}, "download_checksums": {"https://bl.iro.bl.uk/downloads/91ae15cb-e08f-4abf-8396-e4742d9d4e37?locale=en": {"num_bytes": 178669204, "checksum": "fb78f4c5b46bb9013c5d261d531771faf5e931a329c3b5f7a07854ce2ba523e0"}, "https://bl.iro.bl.uk/downloads/6d1a6e17-f28d-45b9-8f7a-a03cf3a96491?locale=en": {"num_bytes": 283713235, "checksum": "015c76358b83f868afb72444d7a46583e3f3b002176fe7cd5b393216ce5cd2b8"}, "https://bl.iro.bl.uk/downloads/ec764dbd-1ed4-4fc2-8668-b4df5c8ec451?locale=en": {"num_bytes": 383417283, "checksum": "0e0c27465ac18593ef7132985fc736b6c24d21551015327f9e3662cdf402760c"}, "https://bl.iro.bl.uk/downloads/eab68022-0418-4df7-a401-78972514ed20?locale=en": {"num_bytes": 472114735, "checksum": "82a5d00f0e3115bab44e9223b936d0114dd9299767ee3e8a2f749d0ebb60b3b4"}, "https://bl.iro.bl.uk/downloads/d16d88b0-aa3f-4dfe-b728-c58d168d7b4d?locale=en": {"num_bytes": 896281411, "checksum": "87cc662769eb445f9b429a29d7b7f933568719ff37640d08a7c677ee31f4f206"}, "https://bl.iro.bl.uk/downloads/a6a44ea8-8d33-4880-8b17-f89c90e3d89a?locale=en": {"num_bytes": 1327206960, "checksum": "1091a8316519888a0cf9b8dbc6a1084ef23b9d756b75d2ae14229570aa8f8024"}, "https://bl.iro.bl.uk/downloads/2e17f00f-52e6-4259-962c-b88ad60dec23?locale=en": {"num_bytes": 1297572144, "checksum": "dbe664a178dc52bc60f1600a7ebf339a4e5431a578a03c2e8ad45cde8ac8c71b"}, "https://bl.iro.bl.uk/downloads/899c3719-030c-4517-abd3-b28fdc85eed4?locale=en": {"num_bytes": 1486429823, "checksum": "0fb963b2273d9f1c040f20fd77ebc33d6d8fdaec6b3f39b7f9e97faf856b7b9e"}, "https://bl.iro.bl.uk/downloads/ec3b8545-775b-47bd-885d-ce895263709e?locale=en": {"num_bytes": 1890726047, "checksum": "b17d1126462b29d904c60e5269f86a4f321069421d72f14052c83c769ce34c50"}, "https://bl.iro.bl.uk/downloads/54ed2842-089a-439a-b751-2179b3ffba28?locale=en": {"num_bytes": 2132446760, "checksum": "9805bbabe285b90cb1f6a3b79a88918aa1c03b9799432775e16f7fd862443196"}}, "download_size": 10348577602, "post_processing_size": null, "dataset_size": 30020434670, "size_in_bytes": 40369012272}, "1700s": {"description": "A dataset comprising of text created by OCR from the 49,455 digitised books, equating to 65,227 volumes (25+ million pages), published between c. 1510 - c. 1900.\nThe books cover a wide range of subject areas including philosophy, history, poetry and literature.\n", "citation": "@misc{bllabs2021,\n author = {British Library Labs},\n title = {Digitised Books. c. 1510 - c. 1900. JSONL (OCR derived text + metadata)},\n year = {2021},\n publisher = {British Library},\n howpublished={https://doi.org/10.23636/r7w6-zy15}\n", "homepage": "https://www.bl.uk/collection-guides/digitised-printed-books", "license": "", "features": {"record_id": {"dtype": "string", "id": null, "_type": "Value"}, "date": {"dtype": "int32", "id": null, "_type": "Value"}, "raw_date": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "place": {"dtype": "string", "id": null, "_type": "Value"}, "empty_pg": {"dtype": "bool", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "pg": {"dtype": "int32", "id": null, "_type": "Value"}, "mean_wc_ocr": {"dtype": "float32", "id": null, "_type": "Value"}, "std_wc_ocr": {"dtype": "float64", "id": null, "_type": "Value"}, "name": {"dtype": "string", "id": null, "_type": "Value"}, "all_names": {"dtype": "string", "id": null, "_type": "Value"}, "Publisher": {"dtype": "string", "id": null, "_type": "Value"}, "Country of publication 1": {"dtype": "string", "id": null, "_type": "Value"}, "all Countries of publication": {"dtype": "string", "id": null, "_type": "Value"}, "Physical description": {"dtype": "string", "id": null, "_type": "Value"}, "Language_1": {"dtype": "string", "id": null, "_type": "Value"}, "Language_2": {"dtype": "string", "id": null, "_type": "Value"}, "Language_3": {"dtype": "string", "id": null, "_type": "Value"}, "Language_4": {"dtype": "string", "id": null, "_type": "Value"}, "multi_language": {"dtype": "bool", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "language-modeling", "text_column": "text"}], "builder_name": "british_library_books", "config_name": "1700s", "version": {"version_str": "1.0.2", "description": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"train": {"name": "train", "num_bytes": 266382657, "num_examples": 178224, "dataset_name": "british_library_books"}}, "download_checksums": {"https://bl.iro.bl.uk/downloads/78b4a8ec-395e-4383-831c-809faff85ad7?locale=en": {"num_bytes": 95137895, "checksum": "da6ca8597b7e65c0be51b239f5aa06462419970332c2c82308b8f2e1fe66b58e"}}, "download_size": 95137895, "post_processing_size": null, "dataset_size": 266382657, "size_in_bytes": 361520552}, "1510_1699": {"description": "A dataset comprising of text created by OCR from the 49,455 digitised books, equating to 65,227 volumes (25+ million pages), published between c. 1510 - c. 1900.\nThe books cover a wide range of subject areas including philosophy, history, poetry and literature.\n", "citation": "@misc{BritishLibraryBooks2021,\n author = {British Library Labs},\n title = {Digitised Books. c. 1510 - c. 1900. JSONL (OCR derived text + metadata)},\n year = {2021},\n publisher = {British Library},\n howpublished={https://doi.org/10.23636/r7w6-zy15}\n", "homepage": "https://www.bl.uk/collection-guides/digitised-printed-books", "license": "", "features": {"record_id": {"dtype": "string", "id": null, "_type": "Value"}, "date": {"dtype": "timestamp[s]", "id": null, "_type": "Value"}, "raw_date": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "place": {"dtype": "string", "id": null, "_type": "Value"}, "empty_pg": {"dtype": "bool", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "pg": {"dtype": "int32", "id": null, "_type": "Value"}, "mean_wc_ocr": {"dtype": "float32", "id": null, "_type": "Value"}, "std_wc_ocr": {"dtype": "float64", "id": null, "_type": "Value"}, "name": {"dtype": "string", "id": null, "_type": "Value"}, "all_names": {"dtype": "string", "id": null, "_type": "Value"}, "Publisher": {"dtype": "string", "id": null, "_type": "Value"}, "Country of publication 1": {"dtype": "string", "id": null, "_type": "Value"}, "all Countries of publication": {"dtype": "string", "id": null, "_type": "Value"}, "Physical description": {"dtype": "string", "id": null, "_type": "Value"}, "Language_1": {"dtype": "string", "id": null, "_type": "Value"}, "Language_2": {"dtype": "string", "id": null, "_type": "Value"}, "Language_3": {"dtype": "string", "id": null, "_type": "Value"}, "Language_4": {"dtype": "string", "id": null, "_type": "Value"}, "multi_language": {"dtype": "bool", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "language-modeling", "text_column": "text"}], "builder_name": "british_library_books", "config_name": "1510_1699", "version": {"version_str": "1.0.2", "description": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"train": {"name": "train", "num_bytes": 107667469, "num_examples": 51982, "dataset_name": "british_library_books"}}, "download_checksums": {"https://bl.iro.bl.uk/downloads/61f58234-b370-422f-8591-8f98e46c2757?locale=en": {"num_bytes": 42320165, "checksum": "6795dd54f6b489f9fcd9146bdd6d5d9abdcb34e1492e7a283b720936292ac599"}}, "download_size": 42320165, "post_processing_size": null, "dataset_size": 107667469, "size_in_bytes": 149987634}, "1500_1899": {"description": "A dataset comprising of text created by OCR from the 49,455 digitised books, equating to 65,227 volumes (25+ million pages), published between c. 1510 - c. 1900.\nThe books cover a wide range of subject areas including philosophy, history, poetry and literature.\n", "citation": "@misc{BritishLibraryBooks2021,\n author = {British Library Labs},\n title = {Digitised Books. c. 1510 - c. 1900. JSONL (OCR derived text + metadata)},\n year = {2021},\n publisher = {British Library},\n howpublished={https://doi.org/10.23636/r7w6-zy15}\n", "homepage": "https://www.bl.uk/collection-guides/digitised-printed-books", "license": "", "features": {"record_id": {"dtype": "string", "id": null, "_type": "Value"}, "date": {"dtype": "timestamp[s]", "id": null, "_type": "Value"}, "raw_date": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "place": {"dtype": "string", "id": null, "_type": "Value"}, "empty_pg": {"dtype": "bool", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "pg": {"dtype": "int32", "id": null, "_type": "Value"}, "mean_wc_ocr": {"dtype": "float32", "id": null, "_type": "Value"}, "std_wc_ocr": {"dtype": "float64", "id": null, "_type": "Value"}, "name": {"dtype": "string", "id": null, "_type": "Value"}, "all_names": {"dtype": "string", "id": null, "_type": "Value"}, "Publisher": {"dtype": "string", "id": null, "_type": "Value"}, "Country of publication 1": {"dtype": "string", "id": null, "_type": "Value"}, "all Countries of publication": {"dtype": "string", "id": null, "_type": "Value"}, "Physical description": {"dtype": "string", "id": null, "_type": "Value"}, "Language_1": {"dtype": "string", "id": null, "_type": "Value"}, "Language_2": {"dtype": "string", "id": null, "_type": "Value"}, "Language_3": {"dtype": "string", "id": null, "_type": "Value"}, "Language_4": {"dtype": "string", "id": null, "_type": "Value"}, "multi_language": {"dtype": "bool", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "language-modeling", "text_column": "text"}], "builder_name": "british_library_books", "config_name": "1500_1899", "version": {"version_str": "1.0.2", "description": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"train": {"name": "train", "num_bytes": 30452067039, "num_examples": 14011953, "dataset_name": "british_library_books"}}, "download_checksums": {"https://bl.iro.bl.uk/downloads/61f58234-b370-422f-8591-8f98e46c2757?locale=en": {"num_bytes": 42320165, "checksum": "6795dd54f6b489f9fcd9146bdd6d5d9abdcb34e1492e7a283b720936292ac599"}, "https://bl.iro.bl.uk/downloads/78b4a8ec-395e-4383-831c-809faff85ad7?locale=en": {"num_bytes": 95137895, "checksum": "da6ca8597b7e65c0be51b239f5aa06462419970332c2c82308b8f2e1fe66b58e"}, "https://bl.iro.bl.uk/downloads/91ae15cb-e08f-4abf-8396-e4742d9d4e37?locale=en": {"num_bytes": 178669204, "checksum": "fb78f4c5b46bb9013c5d261d531771faf5e931a329c3b5f7a07854ce2ba523e0"}, "https://bl.iro.bl.uk/downloads/6d1a6e17-f28d-45b9-8f7a-a03cf3a96491?locale=en": {"num_bytes": 283713235, "checksum": "015c76358b83f868afb72444d7a46583e3f3b002176fe7cd5b393216ce5cd2b8"}, "https://bl.iro.bl.uk/downloads/ec764dbd-1ed4-4fc2-8668-b4df5c8ec451?locale=en": {"num_bytes": 383417283, "checksum": "0e0c27465ac18593ef7132985fc736b6c24d21551015327f9e3662cdf402760c"}, "https://bl.iro.bl.uk/downloads/eab68022-0418-4df7-a401-78972514ed20?locale=en": {"num_bytes": 472114735, "checksum": "82a5d00f0e3115bab44e9223b936d0114dd9299767ee3e8a2f749d0ebb60b3b4"}, "https://bl.iro.bl.uk/downloads/d16d88b0-aa3f-4dfe-b728-c58d168d7b4d?locale=en": {"num_bytes": 896281411, "checksum": "87cc662769eb445f9b429a29d7b7f933568719ff37640d08a7c677ee31f4f206"}, "https://bl.iro.bl.uk/downloads/a6a44ea8-8d33-4880-8b17-f89c90e3d89a?locale=en": {"num_bytes": 1327206960, "checksum": "1091a8316519888a0cf9b8dbc6a1084ef23b9d756b75d2ae14229570aa8f8024"}, "https://bl.iro.bl.uk/downloads/2e17f00f-52e6-4259-962c-b88ad60dec23?locale=en": {"num_bytes": 1297572144, "checksum": "dbe664a178dc52bc60f1600a7ebf339a4e5431a578a03c2e8ad45cde8ac8c71b"}, "https://bl.iro.bl.uk/downloads/899c3719-030c-4517-abd3-b28fdc85eed4?locale=en": {"num_bytes": 1486429823, "checksum": "0fb963b2273d9f1c040f20fd77ebc33d6d8fdaec6b3f39b7f9e97faf856b7b9e"}, "https://bl.iro.bl.uk/downloads/ec3b8545-775b-47bd-885d-ce895263709e?locale=en": {"num_bytes": 1890726047, "checksum": "b17d1126462b29d904c60e5269f86a4f321069421d72f14052c83c769ce34c50"}, "https://bl.iro.bl.uk/downloads/54ed2842-089a-439a-b751-2179b3ffba28?locale=en": {"num_bytes": 2132446760, "checksum": "9805bbabe285b90cb1f6a3b79a88918aa1c03b9799432775e16f7fd862443196"}}, "download_size": 10486035662, "post_processing_size": null, "dataset_size": 30452067039, "size_in_bytes": 40938102701}, "1800_1899": {"description": "A dataset comprising of text created by OCR from the 49,455 digitised books, equating to 65,227 volumes (25+ million pages), published between c. 1510 - c. 1900.\nThe books cover a wide range of subject areas including philosophy, history, poetry and literature.\n", "citation": "@misc{BritishLibraryBooks2021,\n author = {British Library Labs},\n title = {Digitised Books. c. 1510 - c. 1900. JSONL (OCR derived text + metadata)},\n year = {2021},\n publisher = {British Library},\n howpublished={https://doi.org/10.23636/r7w6-zy15}\n", "homepage": "https://www.bl.uk/collection-guides/digitised-printed-books", "license": "", "features": {"record_id": {"dtype": "string", "id": null, "_type": "Value"}, "date": {"dtype": "timestamp[s]", "id": null, "_type": "Value"}, "raw_date": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "place": {"dtype": "string", "id": null, "_type": "Value"}, "empty_pg": {"dtype": "bool", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "pg": {"dtype": "int32", "id": null, "_type": "Value"}, "mean_wc_ocr": {"dtype": "float32", "id": null, "_type": "Value"}, "std_wc_ocr": {"dtype": "float64", "id": null, "_type": "Value"}, "name": {"dtype": "string", "id": null, "_type": "Value"}, "all_names": {"dtype": "string", "id": null, "_type": "Value"}, "Publisher": {"dtype": "string", "id": null, "_type": "Value"}, "Country of publication 1": {"dtype": "string", "id": null, "_type": "Value"}, "all Countries of publication": {"dtype": "string", "id": null, "_type": "Value"}, "Physical description": {"dtype": "string", "id": null, "_type": "Value"}, "Language_1": {"dtype": "string", "id": null, "_type": "Value"}, "Language_2": {"dtype": "string", "id": null, "_type": "Value"}, "Language_3": {"dtype": "string", "id": null, "_type": "Value"}, "Language_4": {"dtype": "string", "id": null, "_type": "Value"}, "multi_language": {"dtype": "bool", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "language-modeling", "text_column": "text"}], "builder_name": "british_library_books", "config_name": "1800_1899", "version": {"version_str": "1.0.2", "description": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"train": {"name": "train", "num_bytes": 30077284377, "num_examples": 13781747, "dataset_name": "british_library_books"}}, "download_checksums": {"https://bl.iro.bl.uk/downloads/91ae15cb-e08f-4abf-8396-e4742d9d4e37?locale=en": {"num_bytes": 178669204, "checksum": "fb78f4c5b46bb9013c5d261d531771faf5e931a329c3b5f7a07854ce2ba523e0"}, "https://bl.iro.bl.uk/downloads/6d1a6e17-f28d-45b9-8f7a-a03cf3a96491?locale=en": {"num_bytes": 283713235, "checksum": "015c76358b83f868afb72444d7a46583e3f3b002176fe7cd5b393216ce5cd2b8"}, "https://bl.iro.bl.uk/downloads/ec764dbd-1ed4-4fc2-8668-b4df5c8ec451?locale=en": {"num_bytes": 383417283, "checksum": "0e0c27465ac18593ef7132985fc736b6c24d21551015327f9e3662cdf402760c"}, "https://bl.iro.bl.uk/downloads/eab68022-0418-4df7-a401-78972514ed20?locale=en": {"num_bytes": 472114735, "checksum": "82a5d00f0e3115bab44e9223b936d0114dd9299767ee3e8a2f749d0ebb60b3b4"}, "https://bl.iro.bl.uk/downloads/d16d88b0-aa3f-4dfe-b728-c58d168d7b4d?locale=en": {"num_bytes": 896281411, "checksum": "87cc662769eb445f9b429a29d7b7f933568719ff37640d08a7c677ee31f4f206"}, "https://bl.iro.bl.uk/downloads/a6a44ea8-8d33-4880-8b17-f89c90e3d89a?locale=en": {"num_bytes": 1327206960, "checksum": "1091a8316519888a0cf9b8dbc6a1084ef23b9d756b75d2ae14229570aa8f8024"}, "https://bl.iro.bl.uk/downloads/2e17f00f-52e6-4259-962c-b88ad60dec23?locale=en": {"num_bytes": 1297572144, "checksum": "dbe664a178dc52bc60f1600a7ebf339a4e5431a578a03c2e8ad45cde8ac8c71b"}, "https://bl.iro.bl.uk/downloads/899c3719-030c-4517-abd3-b28fdc85eed4?locale=en": {"num_bytes": 1486429823, "checksum": "0fb963b2273d9f1c040f20fd77ebc33d6d8fdaec6b3f39b7f9e97faf856b7b9e"}, "https://bl.iro.bl.uk/downloads/ec3b8545-775b-47bd-885d-ce895263709e?locale=en": {"num_bytes": 1890726047, "checksum": "b17d1126462b29d904c60e5269f86a4f321069421d72f14052c83c769ce34c50"}, "https://bl.iro.bl.uk/downloads/54ed2842-089a-439a-b751-2179b3ffba28?locale=en": {"num_bytes": 2132446760, "checksum": "9805bbabe285b90cb1f6a3b79a88918aa1c03b9799432775e16f7fd862443196"}}, "download_size": 10348577602, "post_processing_size": null, "dataset_size": 30077284377, "size_in_bytes": 40425861979}, "1700_1799": {"description": "A dataset comprising of text created by OCR from the 49,455 digitised books, equating to 65,227 volumes (25+ million pages), published between c. 1510 - c. 1900.\nThe books cover a wide range of subject areas including philosophy, history, poetry and literature.\n", "citation": "@misc{BritishLibraryBooks2021,\n author = {British Library Labs},\n title = {Digitised Books. c. 1510 - c. 1900. JSONL (OCR derived text + metadata)},\n year = {2021},\n publisher = {British Library},\n howpublished={https://doi.org/10.23636/r7w6-zy15}\n", "homepage": "https://www.bl.uk/collection-guides/digitised-printed-books", "license": "", "features": {"record_id": {"dtype": "string", "id": null, "_type": "Value"}, "date": {"dtype": "timestamp[s]", "id": null, "_type": "Value"}, "raw_date": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "place": {"dtype": "string", "id": null, "_type": "Value"}, "empty_pg": {"dtype": "bool", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "pg": {"dtype": "int32", "id": null, "_type": "Value"}, "mean_wc_ocr": {"dtype": "float32", "id": null, "_type": "Value"}, "std_wc_ocr": {"dtype": "float64", "id": null, "_type": "Value"}, "name": {"dtype": "string", "id": null, "_type": "Value"}, "all_names": {"dtype": "string", "id": null, "_type": "Value"}, "Publisher": {"dtype": "string", "id": null, "_type": "Value"}, "Country of publication 1": {"dtype": "string", "id": null, "_type": "Value"}, "all Countries of publication": {"dtype": "string", "id": null, "_type": "Value"}, "Physical description": {"dtype": "string", "id": null, "_type": "Value"}, "Language_1": {"dtype": "string", "id": null, "_type": "Value"}, "Language_2": {"dtype": "string", "id": null, "_type": "Value"}, "Language_3": {"dtype": "string", "id": null, "_type": "Value"}, "Language_4": {"dtype": "string", "id": null, "_type": "Value"}, "multi_language": {"dtype": "bool", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "language-modeling", "text_column": "text"}], "builder_name": "british_library_books", "config_name": "1700_1799", "version": {"version_str": "1.0.2", "description": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"train": {"name": "train", "num_bytes": 267117831, "num_examples": 178224, "dataset_name": "british_library_books"}}, "download_checksums": {"https://bl.iro.bl.uk/downloads/78b4a8ec-395e-4383-831c-809faff85ad7?locale=en": {"num_bytes": 95137895, "checksum": "da6ca8597b7e65c0be51b239f5aa06462419970332c2c82308b8f2e1fe66b58e"}}, "download_size": 95137895, "post_processing_size": null, "dataset_size": 267117831, "size_in_bytes": 362255726}}
|
|
|
|