[Paper Review] An Unsupervised method for OCR Post-Correction and Spelling Normalisation for Finnish
This paper proposes a fully unsupervised, character-level neural machine translation (NMT) approach for OCR post-correction and spelling normalization in Finnish, leveraging a self-supervised error generator and context-aware Transformer models. It achieves up to 3.92% absolute accuracy improvement over baseline OCR on low-quality text, with strong performance on correcting morphologically complex historical Finnish without manual annotations.
Historical corpora are known to contain errors introduced by OCR (optical character recognition) methods used in the digitization process, often said to be degrading the performance of NLP systems. Correcting these errors manually is a time-consuming process and a great part of the automatic approaches have been relying on rules or supervised machine learning. We build on previous work on fully automatic unsupervised extraction of parallel data to train a character-based sequence-to-sequence NMT (neural machine translation) model to conduct OCR error correction designed for English, and adapt it to Finnish by proposing solutions that take the rich morphology of the language into account. Our new method shows increased performance while remaining fully unsupervised, with the added benefit of spelling normalisation. The source code and models are available on GitHub and Zenodo.
Motivation & Objective
- To address the challenge of low-quality OCR in historical Finnish corpora, where morphological complexity and lack of annotated data hinder NLP applications.
- To develop a fully unsupervised method that corrects OCR errors and normalizes spelling without relying on manually annotated parallel data.
- To adapt character-level NMT for Finnish by incorporating morphological awareness and contextual information.
- To evaluate the method on real-world OCR outputs with varying error rates, including low-quality and historically digitized texts.
- To enable application of the method to other Uralic and morphologically rich, low-resource languages.
Proposed method
- A self-supervised error generator creates artificial parallel data by introducing synthetic OCR errors into clean Finnish text using a morphological finite-state transducer (FST).
- The model uses a character-level sequence-to-sequence Transformer architecture to learn to map noisy OCR text to clean text, with context windowing to improve local context understanding.
- Two configurations are evaluated: one using random error injection (Rand) and another using error patterns learned from a training set (Train), with window sizes of 1, 3, and 5.
- The method leverages a pre-existing Finnish morphological FST and a clean vocabulary list to validate word correctness and filter out non-words during post-processing.
- The model is trained end-to-end on the synthetic parallel data and fine-tuned on the target OCR distribution to improve generalization.
- Evaluation uses a gold-standard test set and measures accuracy, error correction rate, and false correction rate on three OCR outputs: Tesseract (high quality), OLD (low quality), and FR11 (very low quality).
Experimental results
Research questions
- RQ1Can a fully unsupervised method achieve significant OCR post-correction gains in Finnish without any manually annotated data?
- RQ2How does incorporating morphological knowledge and context windowing affect the performance of character-level NMT in OCR correction?
- RQ3Does the use of a self-supervised error generator outperform existing unsupervised baselines like NATAS in correcting morphologically rich languages?
- RQ4To what extent can the model correct errors in low-quality OCR outputs while minimizing false corrections on already correct words?
- RQ5Can the method be generalized to other Uralic and low-resource, morphologically complex languages?
Key findings
- The TFTrainW5 model achieved the highest accuracy improvement of 3.92% on the OLD OCR setting (from 75.25% to 79.17%), outperforming all other configurations.
- On the FR11 OCR setting (79% accuracy), the TFTrainW3 model improved accuracy by 3.71%, correcting 45.17% of error words while only falsely altering 6.7% of correct words.
- The TFTrainW5 model corrected 38.04% of error words in the OLD setting and maintained a 93.30% accuracy on correctly OCR’d words, demonstrating strong robustness.
- The model significantly outperformed the Tesseract OCR baseline on low-quality inputs, but did not surpass it on high-quality Tesseract output, where error introduction outweighed correction.
- The use of a trained error generator (Train) consistently outperformed random error injection (Rand), with larger context windows (W3, W5) yielding better results than W1.
- The method achieved a 10–12% absolute accuracy gain over baseline OCR on low-quality data, demonstrating strong effectiveness in real-world post-correction scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.