Vartani Spellcheck: BERT と Levenshtein 距離を用いた OCR 生成ヒンディー語テキストの自動文脈依存スペル訂正
Vartani Spellcheck - Automatic Context-Sensitive Spelling Correction of OCR-generated Hindi Text Using BERT and Levenshtein Distance
Vartani Spellcheck - Automatic Context-Sensitive Spelling Correction of OCR-generated Hindi Text Using BERT and Levenshtein Distance
@misc{pal2020vartani,
title = {Vartani Spellcheck - Automatic Context-Sensitive Spelling Correction of OCR-generated Hindi Text Using BERT and Levenshtein Distance},
author = {Aditya Pal and Abhijit Mustafi},
year = {2020},
eprint = {2012.07652},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2012.07652}
}
Pal, A., & Mustafi, A. (2020). Vartani Spellcheck - Automatic Context-Sensitive Spelling Correction of OCR-generated Hindi Text Using BERT and Levenshtein Distance [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2012.07652
PAL A, MUSTAFI A. Vartani Spellcheck - Automatic Context-Sensitive Spelling Correction of OCR-generated Hindi Text Using BERT and Levenshtein Distance[EB/OL]. (2020-12-14)[2026-11-30]. https://arxiv.org/abs/2012.07652.
要旨
伝統的な光学文字認識(OCR)システムは、ヒンディー語のような高度に変化語であるインド言語のテキストを生成する際、文字セットの広さ、複合文字、および単語内の文字分割の難しさにより、精度が低下する傾向がある。これらの OCR システムで生成されたテキストのポストプロセッシングに、自動綴字誤り検出と文脈依存誤り修正を適用することで、精度を向上させることができる。以前開発されたヒンディー語綴字誤り修正のための言語モデルの多くは文脈非依存であった。本稿では、最先端のトランスフォーマーモデルである BERT とエディット距離(一般的にレベンスタイン距離と呼ばれる)アルゴリズムを組み合わせ、ヒンディー語テキストの綴字修正を行う文脈依存アプローチ「Vartani Spellcheck」を提案する。誤り検出には、辞書照会と文脈ベースの命名実体認識(NER)を使用する。我々の提案手法は、広く使用されている Tesseract OCR で生成されたヒンディー語叙事詩『ラマヤナ』の大規模コーパスで評価された。81% の精度で得られた結果は、以前確立されたいくつかのヒンディー語文脈依存誤り修正メカニズムよりも著しい改善を示している。また、テキストエディタ環境における連続入力中のオン・ザ・フライ自動補正提案への Vartani Spellcheck の利用方法についても説明する。
Traditional Optical Character Recognition (OCR) systems that generate text of highly inflectional Indic languages like Hindi tend to suffer from poor accuracy due to a wide alphabet set, compound characters and difficulty in segmenting characters in a word. Automatic spelling error detection and context-sensitive error correction can be used to improve accuracy by post-processing the text generated by these OCR systems. A majority of previously developed language models for error correction of Hindi spelling have been context-free. In this paper, we present Vartani Spellcheck - a context-sensitive approach for spelling correction of Hindi text using a state-of-the-art transformer - BERT in conjunction with the Levenshtein distance algorithm, popularly known as Edit Distance. We use a lookup dictionary and context-based named entity recognition (NER) for detection of possible spelling errors in the text. Our proposed technique has been tested on a large corpus of text generated by the widely used Tesseract OCR on the Hindi epic Ramayana. With an accuracy of 81%, the results show a significant improvement over some of the previously established context-sensitive error correction mechanisms for Hindi. We also explain how Vartani Spellcheck may be used for on-the-fly autocorrect suggestion during continuous typing in a text editor environment.