arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.03024cs.AIcs.IR
收藏

一种面向海量文本规范化的快速随机算法

A Fast Randomized Algorithm for Massive Text Normalization

Purdue University(普渡大学);Amazon(亚马逊)

Nan Jiang, Chen Luo, Vihan Lakshman, Yesh Dattatreya, Yexiang Xue

摘要:

自然语言处理和数据采掘中的许多流行的机器学习技术严重依赖于高质量的文本源。然而,现实世界的文本数据集包含大量的拼写错误和不正确的标点变体,这些模型的性能会迅速恶化。此外,现实世界的网络规模数据集包含数亿甚至数十亿行文本,其中现有的文本清理工具执行起来过于昂贵,并且可能需要额外的开销来学习校正。在本文中,我们提出了FLAN,一个可扩展的随机算法清洁和规范化的海量文本数据。我们的算法依赖于Jaccard相似性的话,建议纠正结果。我们通过局部敏感哈希(LSH)有效地处理成对的词对词的比较。我们还提出了一种新的稳定过程来解决不同单词之间的哈希冲突问题,这是LSH随机性的结果,并且由于大规模的真实世界数据集而加剧。与现有的方法相比,我们的方法是更有效的,无论是渐近和经验评估,并不依赖于额外的功能,如词汇/语音相似性或词嵌入功能。此外,FLAN不需要任何注释数据或监督学习。我们进一步从理论上证明了我们的算法的鲁棒性与上界的假阳性和假阴性率的校正。我们在真实世界数据集上的实验结果证明了FLAN的效率和有效性。

英文摘要:

Many popular machine learning techniques in natural language processing and data mining rely heavily on high-quality text sources. However real-world text datasets contain a significant amount of spelling errors and improperly punctuated variants where the performance of these models would quickly deteriorate. Moreover, real-world, web-scale datasets contain hundreds of millions or even billions of lines of text, where the existing text cleaning tools are prohibitively expensive to execute over and may require an overhead to learn the corrections. In this paper, we present FLAN, a scalable randomized algorithm to clean and canonicalize massive text data. Our algorithm relies on the Jaccard similarity between words to suggest correction results. We efficiently handle the pairwise word-to-word comparisons via Locality Sensitive Hashing (LSH). We also propose a novel stabilization process to address the issue of hash collisions between dissimilar words, which is a consequence of the randomized nature of LSH and is exacerbated by the massive scale of real-world datasets. Compared with existing approaches, our method is more efficient, both asymptotically and in empirical evaluations, and does not rely on additional features, such as lexical/phonetic similarity or word embedding features. In addition, FLAN does not require any annotated data or supervised learning. We further theoretically show the robustness of our algorithm with upper bounds on the false positive and false negative rates of corrections. Our experimental results on real-world datasets demonstrate the efficiency and efficacy of FLAN.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑