Abstract
Optical Character Recognition (OCR) remains a significant hurdle for Digital Humanities, particularly when dealing with historical texts. This paper presents a multi-modular, domain-adaptable system designed to automatically correct OCR errors. By integrating specialized modules such as Statistical Machine Translation (SMT), spell-checkers, and text-specific vocabulary extractors, and ranking their outputs via a trained decision module, the system achieves substantial reductions in Word Error Rate (WER). Crucially, the approach remains effective even with limited training data, making it suitable for niche historical domains.
Introduction
Digital Humanities (DH) researchers frequently encounter historical texts preserved only in physical formats. While modern OCR technology is advanced, it often falters on historical documents characterized by "hard-to-read" fonts (e.g., German Gothic/Fraktur), stained paper, or irregular typesetting. The resulting "noisy" text impedes computational analyses like character network mapping or stylometry. While manual correction is accurate, its cost and speed are prohibitive for large-scale projects. Furthermore, existing automated solutions often demand massive training datasets unavailable for specific historical "micro-domains." This research addresses the need for a high-performing post-correction system that can be tailored to specific domains using minimal manually corrected text.
System Architecture
The proposed architecture treats OCR post-correction as an ensemble problem, consisting of two primary stages: suggestion generation and decision-making.
- Suggestion Modules: Multiple modules run in parallel to generate correction candidates:
- Statistical Machine Translation (SMT): Treats noisy OCR as a source language and clean text as the target. Both token-level and character-level SMT are utilized, trained on general and domain-specific data.
- Lexical Tools: Includes standard spell-checkers (hunspell), compound word mergers, and word splitters to address missing spaces.
- Text-Internal Vocabulary: A module that extracts high-frequency words from the specific book being processed, aiding in the correction of unique named entities.
- Decision Module: To select the optimal suggestion, the system employs a Moses decoder and Minimal Error Rate Training (MERT). It assigns weights to each module based on performance on a development set, learning which "expert" to trust in various contexts.
Datasets
The system was evaluated across several diverse datasets to test its robustness and adaptability:
- The Werther Corpus: Adaptations of Goethe’s The Sorrows of Young Werther (1775–1910), representing domain-specific data.
- Deutsches Textarchive (DTA): A large general corpus of German historical texts (17th–20th century).
- Project Gutenberg: Used for training language models.
- ICDAR 2017 Competition Data: English and French periodicals and monographs for cross-language testing.
Key Results
The system demonstrated significant improvements in Word Error Rate (WER) and Character Error Rate (CER):
- Werther Test Set: Reduced WER from 23.5% to 4.7%, outperforming single-module baselines.
- Unseen Data: Dropped WER from 36.7% to 15.4% on entirely new texts.
- Cross-Language Performance: Achieved a 25% reduction in WER for English and over 30% for French in the ICDAR 2017 datasets.
Conclusion
The multi-modular ensemble approach proves highly effective for OCR post-correction in historical domains. By treating character-level errors as a translation task and leveraging text-internal vocabulary, the system preserves rare entities while correcting systematic font errors. Future work will explore the integration of neural language models and refined vocabulary extraction to further minimize overcorrection and handle non-standard language variants.
Summary updated