Introduction
Transcribing 16th-century documents presents a unique set of challenges that extend beyond standard optical character recognition (OCR). Unlike modern clean text, historical documents from the early printing press era are characterized by linguistic complexity and physical inconsistency. This paper explores an extension of the Ocular historical OCR framework, designed to handle the frequent code-switching and non-standard orthography prevalent in 16th-century colonial texts.
The Challenges of 16th-Century Printing
Historical documents from the 1500s are often multilingual, interleaving Spanish, Latin, and indigenous languages like Nahuatl. Beyond language switching, the physical printing process introduced significant noise. Before the standardization of spelling, printers utilized a variety of ligatures, diacritics, and shorthand elisions to manage space on the page.
These hurdles—code-switching, orthographic fluidity, and physical noise—render traditional monolingual language models (LMs) ineffective. Existing systems often fail to account for the statistical patterns of historical shorthand or the sudden transitions between disparate languages.
Methodology: Unsupervised Multilingual Modeling
To address these issues, the researchers introduced three primary innovations to the generative Ocular framework:
- Unsupervised Code-Switching LM: The system replaces a monolingual $n$-gram model with a generative process that treats language transitions as latent variables. By implementing a "stickiness" parameter ($\kappa$), the model constrains language switches to word boundaries, reflecting natural linguistic patterns.
- Expert-Guided Orthographic Rules: To bridge the gap between modern training corpora and historical print, the authors utilized a set of rewrite rules provided by language experts. These rules (e.g., mapping modern "que" to historical "q̃") allow the LM to learn from modernized data while accurately transcribing historical variants.
- Joint Inference: The system performs simultaneous transcription and word-level language identification. By using visual evidence to determine which language model best fits a sequence of characters, the system can disambiguate visually similar characters that may have different frequencies across languages.
Experimental Results
The system was evaluated using the Primeros Libros dataset, focusing on five books printed in the Americas between 1553 and 1600. The training data included 15th–17th century texts from Project Gutenberg for Spanish and Latin, alongside a private collection of colonial Nahuatl documents.
The proposed model consistently outperformed the baseline Ocular system. Across all test books, the researchers achieved a 14% relative reduction in Character Error Rate (CER). Notably, on the Bautista (1600) text, the system achieved a 29% relative improvement in Word Error Rate (WER), reducing it from 25.7% to 18.2%.
Discussion and Future Work
While the system showed significant success in distinguishing between languages and handling orthographic variation, certain challenges remain. Gothic fonts continue to pose difficulties due to high visual similarity between characters. Additionally, inconsistent spacing in 16th-century Nahuatl occasionally disrupted the model's reliance on word boundaries for language switching.
Future research may focus on "bootstrapping" the identification of spelling variants automatically, further reducing the reliance on manual expert-guided rules and expanding the system's utility for diverse historical archives.
Summary updated