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 시스템이 생성한 텍스트를 후처리하는 자동 오타 탐지 및 문맥에 민감한 오류 수정은 정확도를 향상시킬 수 있습니다. 이전에 개발된 힌디어 오타 수정 언어 모델의 대부분은 문맥 무관 (context-free) 입니다. 본 논문에서는 최신 트랜스포머 기반 모델인 BERT 와 Levenshtein 거리 (일반적으로 편집 거리로 불림) 를 결합하여 힌디어 텍스트의 오타 수정을 위한 문맥에 민감한 접근법인 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.