Post-OCR Text Cleanup
Refines and corrects OCR-generated text using a hybrid approach of LLM-based error correction and deterministic rule-based processing for high-fidelity research corpora.
This skill provides a comprehensive framework for cleaning text generated via Optical Character Recognition (OCR), specifically designed for academic and social science research. It implements a sophisticated hybrid pipeline that combines LLM-driven contextual correction with deterministic rule-based fixes to handle common artifacts like broken words, garbled punctuation, and missing diacritics. It is particularly effective for historical archives and multilingual datasets, offering strategies to prevent AI hallucinations through constrained decoding and alignment-based post-processing, ensuring that the resulting text is optimized for downstream NLP tasks like topic modeling and Named Entity Recognition (NER).