In this paper, we propose a novel method based on character sequence-to-sequence models to correct documents already processed with Optical Character Recognition (OCR) systems. The main contribution of this paper is a set of strategies to accurately process strings much longer than the ones used to train the sequence model while being sample- and resource-efficient, supported by thorough experimentation. The strategy with the best performance involves splitting the input document in character n-grams and combining their individual corrections into the final output using a voting scheme that is equivalent to an ensemble of a large number of sequence models. We further investigate how to weigh the contributions from each one of the members of this ensemble. We test our method on nine languages of the ICDAR 2019 competition on post-OCR text correction and achieve a new state-of-the-art performance in five of them. Our code for post-OCR correction is shared at https://github.com/jarobyte91/post_ocr_correction.
翻译:在本文中,我们提出了一种基于字符序列到顺序模型的新颖方法,以纠正已经通过光学字符识别系统处理的文件。本文件的主要贡献是一套战略,以准确处理比用于培训序列模型的顺序,同时具有样本和资源效率的模板和资源效率的系统更长得多的字符串,并辅以彻底的实验。具有最佳性能的战略涉及将输入文件分为字符n-克,并使用相当于大量序列模型组合的投票方案将单个更正合并为最终产出。我们进一步调查如何权衡该组合每个成员的贡献。我们测试了2019年ICDAR关于后文本校正的9种语言,并在其中5种语言中实现了新的最新性能。我们的OCR后校正代码在 https://github.com/jarobyte91/post_ocr_rectionion上共享。