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

中、英、日、韩文本分类的最佳编码是什么?

Which Encoding is the Best for Text Classification in Chinese, English, Japanese and Korean?

Courant Institute of Mathematical Sciences, New York University(纽约大学库朗数学科学研究所);Center for Data Science, New York University(纽约大学数据科学中心);Facebook AI Research, Facebook Inc.(Facebook 公司人工智能研究院)

Xiang Zhang, Yann LeCun

摘要:

本文对中、日、韩、英四种语言的不同编码方法进行了实证研究。研究了不同的编码级别,包括UTF-8字节、字符、单词、罗马化字符和罗马化单词。对于所有编码级别,只要适用,我们就提供与线性模型,fastText和卷积网络的比较。对于卷积网络,我们比较了使用字符串图像、one-hot(或one-of-n)编码和嵌入的编码机制。总共有473个模型,使用14个大规模文本分类数据集,包括中文,英文,日文和韩文。从这些结果中得出的一些结论包括,基于UTF-8的字节级独热编码始终为卷积网络产生有竞争力的结果,即使没有完美的分词,单词级n-gram线性模型也具有竞争力,fastText使用字符级n-gram编码提供最佳结果,但当特征过于丰富时可能会过拟合。

英文摘要:

This article offers an empirical study on the different ways of encoding Chinese, Japanese, Korean (CJK) and English languages for text classification. Different encoding levels are studied, including UTF-8 bytes, characters, words, romanized characters and romanized words. For all encoding levels, whenever applicable, we provide comparisons with linear models, fastText and convolutional networks. For convolutional networks, we compare between encoding mechanisms using character glyph images, one-hot (or one-of-n) encoding, and embedding. In total there are 473 models, using 14 large-scale text classification datasets in 4 languages including Chinese, English, Japanese and Korean. Some conclusions from these results include that byte-level one-hot encoding based on UTF-8 consistently produces competitive results for convolutional networks, that word-level n-grams linear models are competitive even without perfect word segmentation, and that fastText provides the best result using character-level n-gram encoding but can overfit when the features are overly rich.

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

↑