--- license: cc0-1.0 task_categories: - image-to-text - text-retrieval - text-generation language: - es tags: - historical - magazines - spain - cultural-heritage - hemeroteca - archive - bne - ocr - 19th-century - pretraining size_categories: - 100K Full list of collections included (20 collections)
Collection Split
Agricultura y ganadería agricultura_y_ganaderia
Ciencias ciencias
Cultura cultura
Deportes deportes
Derecho derecho
Economía economia
Educación educacion
Fuerzas armadas fuerzas_armadas
Historia historia
Industria industria
Literatura literatura
Medicina medicina
Minería mineria
Música musica
Navegación navegacion
Política politica
Relaciones internacionales relaciones_internacionales
Religión religion
Revistas femeninas revistas_femeninas
Teatro teatro
## Use Cases - **OCR benchmarking and fine-tuning**: Use the existing OCR output as a baseline. Review and correct samples to generate ground truth for training improved OCR models on historical Spanish documents. - **Text retrieval and RAG**: Since the original PDFs are scanned images, this dataset unlocks full-text search. Build retrieval-augmented generation (RAG) systems to query historical Spanish press. - **LLM pretraining**: Use the generated text for general pretraining or to build time-capsule language models trained exclusively on 19th century text, capturing the language, topics, and worldview of that era. ## Efficient Data Loading If you are only interested in the text or metadata for early exploration (skipping the large images), we provide a script to download only specific columns efficiently. - [**download_dataset.py**](https://github.com/ferjorosa/bne-hemeroteca-data/blob/main/ocr/download_dataset.py) ## Fields ### Page Data | Field | Description | |-------|-------------| | `image` | Page image | | `text` | Full OCR text (Markdown format) | | `issue_uuid` | Unique identifier for the issue | | `issue_name` | Name/Title of the issue | | `page` | Page number | | `publication_issn` | ISSN of the publication | | `date` | Publication date | | `issue_link` | Link to the original issue on BNE website | | `model_id` | OCR model used ([allenai/olmOCR-2-7B-1025-FP8](https://huggingface.co/allenai/olmOCR-2-7B-1025-FP8))| ### OCR Metadata | Field | Description | |-------|-------------| | `primary_language` | Primary language detected on page | | `is_table` | Whether the page contains tables | | `is_diagram` | Whether the page contains diagrams | | `is_rotation_valid` | Whether page rotation was valid | | `rotation_correction` | Degrees of rotation correction applied | | `total_input_tokens` | Token count (input) | | `total_output_tokens` | Token count (output) | ## Citation ```bibtex @dataset{bne_hemeroteca_ocr_xix, title={BNE Hemeroteca OCR Dataset (19th Century)}, author={Fernando Rodriguez}, year={2025}, url={https://huggingface.co/datasets/ferjorosa/bne-hemeroteca-ocr-xix}, note={Processed with olmOCR from Hemeroteca Digital (BNE) archives} } ``` ## License CC0 1.0 (Public Domain). Original content provided by the [Biblioteca Nacional de España](https://www.bne.es/).