DPCSpell: A Transformer-based Detector-Purificator-Corrector Framework for Spelling Error Correction of Bangla and Resource Scarce Indic Languages

Mehedi Hasan Bijoy, Nahid Hossain, Salekul Islam, Swakkhar Shatabda
11/7/2022
cs.CL
transformer-attention

Official code: mehedihasanbijoy/DPCSpell (14 stars, Python, MIT, PyTorch, last commit 2024-08-09).

Abstract

Spelling error correction is the task of identifying and rectifying misspelled words in texts. It is a potential and active research topic in Natural Language Processing because of numerous applications in human language understanding.

Show full abstract

The phonetically or visually similar yet semantically distinct characters make it an arduous task in any language. Earlier efforts on spelling error correction in Bangla and resource-scarce Indic languages focused on rule-based, statistical, and machine learning-based methods which we found rather inefficient. In particular, machine learning-based approaches, which exhibit superior performance to rule-based and statistical methods, are ineffective as they correct each character regardless of its appropriateness. In this paper, we propose a novel detector-purificator-corrector framework, DPCSpell based on denoising transformers by addressing previous issues. In addition to that, we present a method for large-scale corpus creation from scratch which in turn resolves the resource limitation problem of any left-to-right scripted language. The empirical outcomes demonstrate the effectiveness of our approach, which outperforms previous state-of-the-art methods by attaining an exact match (EM) score of 94.78%, a precision score of 0.9487, a recall score of 0.9478, an f1 score of 0.948, an f0.5 score of 0.9483, and a modified accuracy (MA) score of 95.16% for Bangla spelling error correction. The models and corpus are publicly available at https://tinyurl.com/DPCSpell.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

[Computer Speech & Language] A transformer-based spelling error correction framework for Bangla and resource scarce Indic languages

145PythonAug 17, 20222 years agoMIT
convolutional-seq2seqdcspelldpcspelldtransformerencoder-decoder+6 more

Similar Papers

Cite this paper

@article{bijoy2022dpcspell,
  title  = {DPCSpell: A Transformer-based Detector-Purificator-Corrector Framework for Spelling Error Correction of Bangla and Resource Scarce Indic Languages},
  author = {Mehedi Hasan Bijoy and Nahid Hossain and Salekul Islam and Swakkhar Shatabda},
  year   = {2022},
  eprint = {2211.03730},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.03730}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.03730.svg)](https://codeofpaper.com/paper/2211.03730)

Discussion