Datasets:
Download README.md from VL-Data/scanned_docs_loc: direct link, hf CLI and curl.
- Browser
- Download file 3.29 kB
-
https://huggingface.co/datasets/VL-Data/scanned_docs_loc/resolve/main/README.md
- Command line
-
hf download hf://datasets/VL-Data/scanned_docs_loc/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/datasets/VL-Data/scanned_docs_loc/resolve/main/README.md
license: other
task_categories:
- image-to-text
tags:
- ocr
- document
- scanned-documents
- unlabeled
pretty_name: scanned_docs_loc
configs:
- config_name: books
data_files:
- split: train
path: books/*/*.parquet
- config_name: manuscripts
data_files:
- split: train
path: manuscripts/*/*.parquet
- config_name: maps
data_files:
- split: train
path: maps/*/*.parquet
- config_name: newspapers
data_files:
- split: train
path: newspapers/*/*.parquet
scanned_docs_loc
Raw scanned and photographed document page images collected by the ElliotVL DataEngine as an OCR / document-understanding image pool. 395,013 images, 1.04 TB.
- Library of Congress — page images of digitized books, manuscripts, maps and newspapers via the loc.gov API. Source: https://www.loc.gov/apis/json-and-yaml/
| config | source | images | shards | size |
|---|---|---|---|---|
books |
loc_books |
117,663 | 0-123 of 124 | 0.13 TB |
manuscripts |
loc_manuscripts |
83,194 | 0-63 of 64 | 0.07 TB |
maps |
loc_maps |
105,865 | 0-336 of 337 | 0.36 TB |
newspapers |
loc_newspapers |
88,291 | 0-444 of 445 | 0.48 TB |
What this is, and what it is not
- Unlabeled. There is no OCR text, caption or QA. Each row is one page image plus its provenance; labels are meant to be produced downstream.
- Original bytes. Every image is stored exactly as downloaded (JPEG, JPEG 2000, TIFF, GIF), not resized or re-encoded. Pages are large: census frames are typically ~7096×5472, Internet Archive pages ~4000×6000. Decode JPEG 2000 with a Pillow built against OpenJPEG.
- Deduplication is exact by downloaded file / zip member within a source.
image_sha256is the hash of the stored bytes, so exact duplicates across sources can be removed by joining on it. Near-duplicates (the same page scanned twice) are not removed.
Schema
image— HFImage();pathis the original file nameimage_sha256— SHA-256 of the stored image bytessource_id— collection lane, e.g.nara_catalog,loc_maps,ia_german_modernitem_id/item_url— the record or book the page belongs to (NARA catalog id, LOC item, Internet Archive identifier)image_url— the URL the image was downloaded from (empty for pages taken out of an IA archive)title— record / book title when the source provides onepage_index— 0-based page position inside an Internet Archive item, else emptywidth,height,image_format,file_name
Parquet shards are ~1 GB with ~32 MB row groups, 1000 shards per subfolder.
How this was made
Code and design notes: Elliot-Data/elliotvl-data-pipeline. Start with
DataEngine/docs/scanned_doc_pipeline.md (download lanes, resumable state, IA page manifests), the
run log DataEngine/reports/scanned_doc_download_run_20260702.md, and for this Hub layout
DataEngine/scripts/pool_publish/scanned_docs_to_hub.py / scanned_docs_publish.py.
Rights
Library of Congress. Rights vary by item. Many digitized Library of Congress collections state no known restrictions on publication, but not all do. Check the item at item_url.
Access is gated with manual approval.