davanstrien HF Staff commited on
Commit
d5a1081
·
verified ·
1 Parent(s): bf4f55e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +82 -0
README.md CHANGED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc0-1.0
3
+ task_categories:
4
+ - image-to-text
5
+ - text-generation
6
+ language:
7
+ - en
8
+ tags:
9
+ - lance
10
+ - historical
11
+ - ocr
12
+ - encyclopaedia
13
+ - britannica
14
+ - 18th-century
15
+ - 19th-century
16
+ pretty_name: Encyclopaedia Britannica (1771-1860)
17
+ size_categories:
18
+ - 100K<n<1M
19
+ ---
20
+
21
+ # Encyclopaedia Britannica (1771-1860) - Lance Format
22
+
23
+ This dataset contains 155,388 digitized pages from the Encyclopaedia Britannica, spanning editions from 1771 to 1860. The data is stored in **Lance format** for efficient streaming and lazy image loading.
24
+
25
+ ## Dataset Details
26
+
27
+ - **Total Pages**: 155,388
28
+ - **Total Volumes**: 195
29
+ - **Format**: Lance (columnar format with blob storage for images)
30
+ - **Source**: National Library of Scotland (NLS)
31
+ - **License**: Public Domain (CC0)
32
+
33
+ ## Loading the Dataset
34
+
35
+ ```python
36
+ import lance
37
+
38
+ # Load from Hugging Face Hub
39
+ ds = lance.dataset("hf://datasets/davanstrien/encyclopaedia-britannica-lance-test/data/train.lance")
40
+
41
+ # Check total rows
42
+ print(f"Total pages: {ds.count_rows()}")
43
+
44
+ # Sample a few rows (metadata only, images are lazy-loaded)
45
+ sample = ds.take([0, 100, 1000]).to_pydict()
46
+ for i, idx in enumerate([0, 100, 1000]):
47
+ print(f"Page {idx}: {sample['volume_part'][i]}")
48
+ ```
49
+
50
+ ## Schema
51
+
52
+ | Field | Type | Description |
53
+ |-------|------|-------------|
54
+ | `volume_id` | string | NLS volume identifier |
55
+ | `page_number` | int32 | Page number within volume |
56
+ | `file_identifier` | string | Base filename identifier |
57
+ | `image` | binary (blob) | Page image (JPEG, lazy-loaded) |
58
+ | `text` | string | OCR text extracted from ALTO XML |
59
+ | `alto_xml` | string | Raw ALTO XML with full OCR structure |
60
+ | `has_image` | bool | Whether page has image |
61
+ | `has_alto` | bool | Whether page has ALTO XML |
62
+ | `edition` | string | Edition name (e.g., "First edition") |
63
+ | `volume_part` | string | Full volume description |
64
+ | `publication_year` | string | Year of publication |
65
+ | `editor` | string | Editor name |
66
+ | `full_title` | string | Full bibliographic title |
67
+ | `shelf_locator` | string | NLS shelf location |
68
+
69
+ ## Editions Included
70
+
71
+ - First edition (1771)
72
+ - Second edition (1778-1783)
73
+ - Third edition (1788-1797)
74
+ - Fourth edition (1801-1810)
75
+ - Fifth edition (1815-1817)
76
+ - Sixth edition (1820-1823)
77
+ - Seventh edition (1830-1842)
78
+ - Supplement editions
79
+
80
+ ## Source
81
+
82
+ Original data from the [National Library of Scotland Data Foundry](https://data.nls.uk/data/digitised-collections/encyclopaedia-britannica/).