CoolFace
Datasetpublic

NationalLibraryOfScotland/encyclopaedia-britannica-lance

Encyclopaedia Britannica (1771-1860) - Lance Format 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. Dataset Details Total Pages: 155,388 Total Volumes: 195 Format: Lance (columnar format with blob storage for images) Source: National Library of Scotland (NLS) License: Public Domain (CC0) Loading the… See the full description on the dataset page: https://huggingface.co/datasets/NationalLibraryOfScotland/encyclopaedia-britannica-lance.

sourceHugging Facecc0-1.0updated 8mo agoView on Hugging Face
2likes783downloads
Dataset Card

Encyclopaedia Britannica (1771-1860) - Lance Format

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.

Dataset Details

  • Total Pages: 155,388
  • Total Volumes: 195
  • Format: Lance (columnar format with blob storage for images)
  • Source: National Library of Scotland (NLS)
  • License: Public Domain (CC0)

Loading the Dataset

python
import lance

# Load from Hugging Face Hub
ds = lance.dataset("hf://datasets/davanstrien/encyclopaedia-britannica-lance-test/data/train.lance")

# Check total rows
print(f"Total pages: {ds.count_rows()}")

# Sample a few rows (metadata only, images are lazy-loaded)
sample = ds.take([0, 100, 1000]).to_pydict()
for i, idx in enumerate([0, 100, 1000]):
    print(f"Page {idx}: {sample['volume_part'][i]}")

Schema

FieldTypeDescription
volume_idstringNLS volume identifier
page_numberint32Page number within volume
file_identifierstringBase filename identifier
imagebinary (blob)Page image (JPEG, lazy-loaded)
textstringOCR text extracted from ALTO XML
alto_xmlstringRaw ALTO XML with full OCR structure
has_imageboolWhether page has image
has_altoboolWhether page has ALTO XML
editionstringEdition name (e.g., "First edition")
volume_partstringFull volume description
publication_yearstringYear of publication
editorstringEditor name
full_titlestringFull bibliographic title
shelf_locatorstringNLS shelf location

Editions Included

  • First edition (1771)
  • Second edition (1778-1783)
  • Third edition (1788-1797)
  • Fourth edition (1801-1810)
  • Fifth edition (1815-1817)
  • Sixth edition (1820-1823)
  • Seventh edition (1830-1842)
  • Supplement editions

Source

Original data from the National Library of Scotland Data Foundry.