机构报纸流水线:从历史报纸中提取数十亿高质量词元
研究论文 · 2026/09/03
历史报纸是公共生活的丰富记录,但其密集、不规则且有时嘈杂的版面使得对这些材料的计算访问既具挑战性又有限。我们介绍了与波士顿公共图书馆共同设计的模块化系统——机构报纸流水线,用于从历史报纸扫描件中提取高质量、结构化的数据集。该系统架构确保每一步都可解释和可定制,并且整个流水线在计算上足够节俭,可在工作站级硬件上运行。流水线对每个扫描件执行多步骤处理:将扫描件分割成独立的、与字体无关的裁剪块,对每个结果块进行OCR,然后对每个裁剪块进行文本分析、字体分类、阅读顺序检测、命名实体识别、主题分类、语言检测和预计算嵌入生成。我们对波士顿公共图书馆的部分馆藏运行了该流水线,并将结果作为开放数据集发布。OCR输出代表163亿个o200k_base标记,来自8310万个独立裁剪块,提取自1795年至1930年间出版的1,473,635份公共领域报纸扫描件。本报告描述了每个处理步骤的方法、我们训练的小模型,以及在此过程中收集的评估结果和数据集规模测量。它伴随流水线、模型和数据集的发布。我们将这项工作定位为解锁数千万份报纸扫描件中高质量数据的重要一步。
该论文提出了一种创新的模块化流水线,能够从历史报纸扫描件中高效提取大规模高质量数据,解决了历史文档数字化中的关键挑战。其开放数据集和模型为数字人文和自然语言处理研究提供了宝贵资源,且方法具有可解释性和可定制性,适合在有限计算资源下部署。
Historical newspapers are an abundant record of public life, but their dense, irregular and sometimes noisy layouts make computational access to these materials both challenging and limited. We present the Institutional Newspapers Pipeline, a modular system we jointly designed with Boston Public Library to extract high-quality, structured datasets from historical newspaper scans. It was architected so that each step remains interpretable and customizable, and so that the pipeline as a whole remains computationally frugal enough to run on workstation-level hardware. The pipeline runs each scan through a multi-step process: it segments scans into individual type-agnostic crops and performs OCR on each resulting segment before then performing text analysis, type classification, reading order detection, named entities recognition, subject classification, language detection, and pre-computed embeddings generation on every crop. We ran this pipeline against a portion of Boston Public Library's holdings and released the results as an open dataset. The optical character recognition (OCR) output represents 16.3 billion o200k_base tokens across 83.1 million individual crops, extracted from 1,473,635 public domain newspaper scans published between 1795 and 1930. This report describes our methods for each processing step, the small models we trained, as well as the evaluation results and dataset-scale measurements we collected in the process. It accompanies the release of the pipeline, models, and dataset. We position this work as a substantial step towards unlocking high-quality data from tens of millions of newspaper scans.