{"id":"2012.07652","title":"Vartani Spellcheck - Automatic Context-Sensitive Spelling Correction of OCR-generated Hindi Text Using BERT and Levenshtein Distance","authors":["Aditya Pal","Abhijit Mustafi"],"categories":["cs.CL","cs.AI","cs.LG"],"primary_category":"cs.CL","first_posted":"2020-12-14","updated":"2020-12-14","url":"https://arxiv.vip/abs/2012.07652","arxiv_url":"https://arxiv.org/abs/2012.07652","pdf_url":"https://arxiv.org/pdf/2012.07652","comment_count":0,"abstract":"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.","arxiv_comments":"5 pages, 3 figures","journal_ref":null,"doi":null,"license":"http://arxiv.org/licenses/nonexclusive-distrib/1.0/","versions":1,"discussion_url":"https://arxiv.vip/abs/2012.07652#discussion"}