arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.09862cs.CLcs.AI
收藏

基于互反秩分类器的语言识别

Language Identification with a Reciprocal Rank Classifier

LivePerson

Dominic Widdows, Chris Brew

摘要:

语言识别是语言处理流水线的关键组成部分(Jauhiainen等人,2019年),并不是在现实世界中解决的问题。我们提出了一个轻量级的和有效的语言识别器,是鲁棒的域的变化和缺乏丰富的训练数据。分类的关键思想是频率表中的秩的倒数产生有效的加性特征分数,因此术语倒数秩分类器(RRC)。语言分类的关键发现是,单词和字符频率的排名列表形成了对关键语言及其拼写的充分和鲁棒的表示。我们在两个22种语言的数据集上进行了测试,并展示了从维基百科训练集到Twitter测试集的零努力领域自适应。当在维基百科上训练但应用于Twitter时,传统训练的SVM分类器的宏观平均F1分数从90.9%下降到77.7%。相比之下,RRC的宏F1分数仅从93.1%下降到90.6%。这些分类器进行了比较,从fastText和langid。在大多数实验中,RRC比这些已建立的系统表现得更好,特别是在简短的维基百科文本和Twitter上。可以通过将单词添加到排名列表来针对特定域和会话情况改进RRC分类器。使用从此类对话中学习的新术语,我们证明样本消息分类的准确性进一步提高了7.9%,对话分类的准确性提高了1.7%。令人惊讶的是,这使得Twitter数据的结果略差。RRC分类器作为开源Python包(https://github.com/LivePersonInc/lplangid)提供。

英文摘要:

Language identification is a critical component of language processing pipelines (Jauhiainen et al.,2019) and is not a solved problem in real-world settings. We present a lightweight and effective language identifier that is robust to changes of domain and to the absence of copious training data. The key idea for classification is that the reciprocal of the rank in a frequency table makes an effective additive feature score, hence the term Reciprocal Rank Classifier (RRC). The key finding for language classification is that ranked lists of words and frequencies of characters form a sufficient and robust representation of the regularities of key languages and their orthographies. We test this on two 22-language data sets and demonstrate zero-effort domain adaptation from a Wikipedia training set to a Twitter test set. When trained on Wikipedia but applied to Twitter the macro-averaged F1-score of a conventionally trained SVM classifier drops from 90.9% to 77.7%. By contrast, the macro F1-score of RRC drops only from 93.1% to 90.6%. These classifiers are compared with those from fastText and langid. The RRC performs better than these established systems in most experiments, especially on short Wikipedia texts and Twitter. The RRC classifier can be improved for particular domains and conversational situations by adding words to the ranked lists. Using new terms learned from such conversations, we demonstrate a further 7.9% increase in accuracy of sample message classification, and 1.7% increase for conversation classification. Surprisingly, this made results on Twitter data slightly worse. The RRC classifier is available as an open source Python package (https://github.com/LivePersonInc/lplangid).

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

↑