Tesseract开源OCR引擎为泰米尔语和僧伽罗语传统字体适配并为泰米尔-僧伽罗语-英语创建并行语料库
Adapting the Tesseract Open-Source OCR Engine for Tamil and Sinhala Legacy Fonts and Creating a Parallel Corpus for Tamil-Sinhala-English
摘要:
大多数低资源语言甚至没有必要的资源来创建一个实质性的单语语料库。这些语言可能经常出现在政府程序中,但主要是包含传统字体的可移植文档格式(PDF)。从这些文档中提取文本以创建单语语料库是具有挑战性的,这是由于传统的字体使用和打印机友好的编码,这些都没有针对文本提取进行优化。因此,我们提出了一个简单的,自动的,新颖的想法,可以扩展为泰米尔语,僧伽罗语,英语语言和许多文件以及并行语料库。由于泰米尔语和僧伽罗语是低资源语言,我们通过对20多种传统字体进行基于LSTM的训练来识别这些语言中的印刷字符,从而提高了Tesseract的性能。特别是,我们的模型检测代码混合文本,数字,和专用字符从打印文档。实验结果表明,该方法可以将Tesseract的字符级出错率从6.03降低到2.61僧伽罗语为7.61至4.74(相对变动为-3.42%)(-2.87%相对变化),在测试集上,泰米尔语的词级错误率从39.68到20.61(相对变化为-19.07%),僧伽罗语的词级错误率从35.04到26.58(相对变化为-8.46%)。此外,我们新创建的平行语料库包括185.4k,168.9k和181.04k句子和2.11M,2.22M和2.33M泰米尔语,僧伽罗语和英语单词。这项研究表明,在多种新字体上微调Tesseract模型有助于理解文本并提高OCR的性能。我们免费提供了新训练的模型和微调Tesseract的源代码。
英文摘要:
Most low-resource languages do not have the necessary resources to create even a substantial monolingual corpus. These languages may often be found in government proceedings but mainly in Portable Document Format (PDF) that contains legacy fonts. Extracting text from these documents to create a monolingual corpus is challenging due to legacy font usage and printer-friendly encoding, which are not optimized for text extraction. Therefore, we propose a simple, automatic, and novel idea that can scale for Tamil, Sinhala, English languages, and many documents along with parallel corpora. Since Tamil and Sinhala are Low-Resource Languages, we improved the performance of Tesseract by employing LSTM-based training on more than 20 legacy fonts to recognize printed characters in these languages. Especially, our model detects code-mixed text, numbers, and special characters from the printed document. It is shown that this approach can reduce the character-level error rate of Tesseract from 6.03 to 2.61 for Tamil (-3.42% relative change) and 7.61 to 4.74 for Sinhala (-2.87% relative change), as well as the word-level error rate from 39.68 to 20.61 for Tamil (-19.07% relative change) and 35.04 to 26.58 for Sinhala (-8.46% relative change) on the test set. Also, our newly created parallel corpus consists of 185.4k, 168.9k, and 181.04k sentences and 2.11M, 2.22M, and 2.33M Words in Tamil, Sinhala, and English respectively. This study shows that fine-tuning Tesseract models on multiple new fonts help to understand the texts and enhances the performance of the OCR. We made newly trained models and the source code for fine-tuning Tesseract, freely available.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。