NeuSpell:一个神经拼写纠正工具包
NeuSpell: A Neural Spelling Correction Toolkit
摘要:
我们介绍NeuSpell,一个用于英语拼写纠正的开源工具包。我们的工具包包括10个不同的模型,并对它们进行了基准测试,这些测试是基于来自多个来源的自然发生的拼写错误。我们发现,许多系统没有充分利用拼写错误的令牌周围的上下文。为了解决这个问题,(i)我们使用上下文中的拼写错误来训练神经模型,通过逆向工程孤立的拼写错误来综合构建;(ii)使用上下文表示。通过对我们的合成示例进行训练,与在随机采样的字符扰动上训练模型的情况相比,校正率提高了9%(绝对值)。使用更丰富的上下文表示可以将正确率再提高3%。我们的工具包使从业者能够使用我们提出的和现有的拼写纠正系统,无论是通过一个统一的命令行,以及一个Web界面。在许多潜在的应用中,我们展示了我们的拼写检查器在对抗性拼写错误中的实用性。该工具包可以在neuspell.github.io上访问。代码和预训练模型可在http://github.com/neuspell/neuspell上获得。
英文摘要:
We introduce NeuSpell, an open-source toolkit for spelling correction in English. Our toolkit comprises ten different models, and benchmarks them on naturally occurring misspellings from multiple sources. We find that many systems do not adequately leverage the context around the misspelt token. To remedy this, (i) we train neural models using spelling errors in context, synthetically constructed by reverse engineering isolated misspellings; and (ii) use contextual representations. By training on our synthetic examples, correction rates improve by 9% (absolute) compared to the case when models are trained on randomly sampled character perturbations. Using richer contextual representations boosts the correction rate by another 3%. Our toolkit enables practitioners to use our proposed and existing spelling correction systems, both via a unified command line, as well as a web interface. Among many potential applications, we demonstrate the utility of our spell-checkers in combating adversarial misspellings. The toolkit can be accessed at neuspell.github.io. Code and pretrained models are available at http://github.com/neuspell/neuspell.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。