Reference-Based Post-OCR Processing with LLM for Precise Diacritic Text in Historical Document Recognition

Authors

  • Thao Do Korea Advanced Institute of Science & Technology
  • Dinh Phu Tran Korea Advanced Institute of Science & Technology
  • An Vo Korea Advanced Institute of Science & Technology
  • Daeyoung Kim Korea Advanced Institute of Science & Technology

DOI:

https://doi.org/10.1609/aaai.v39i27.35012

Abstract

Extracting fine-grained OCR text from aged documents in diacritic languages remains challenging due to unexpected artifacts, time-induced degradation, and lack of datasets. While standalone spell correction approaches have been proposed, they show limited performance for historical documents due to numerous possible OCR error combinations and differences between modern and classical corpus distributions. We propose a method utilizing available content-focused ebooks as a reference base to correct imperfect OCR-generated text, supported by large language models. This technique generates high-precision pseudo-page-to-page labels for diacritic languages, where small strokes pose significant challenges in historical conditions. The pipeline eliminates various types of noise from aged documents and addresses issues such as missing characters, words, and disordered sequences. Our post-processing method, which generated a large OCR dataset of classical Vietnamese books, achieved a mean grading score of 8.72 on a 10-point scale. This outperformed the state-of-the-art transformer-based Vietnamese spell correction model, which scored 7.03, when evaluated on a sampled subset of the dataset. We also trained a baseline OCR model to assess and compare it with well-known engines. Experimental results demonstrate the strength of our baseline model compared to widely used open-source solutions. The resulting dataset will be released publicly to support future studies.

Downloads

Published

2025-04-11

How to Cite

Do, T., Tran, D. P., Vo, A., & Kim, D. (2025). Reference-Based Post-OCR Processing with LLM for Precise Diacritic Text in Historical Document Recognition. Proceedings of the AAAI Conference on Artificial Intelligence, 39(27), 27951–27959. https://doi.org/10.1609/aaai.v39i27.35012