arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1804.02063cs.CL
收藏

基于预训练词嵌入和人工参与的Few-Shot文本分类

Few-Shot Text Classification with Pre-Trained Word Embeddings and a Human in the Loop

Acquia

Katherine Bailey, Sunny Chopra

摘要:

大多数关于文本分类的文献将其视为监督学习问题:给定标记文档的语料库,训练分类器,使其能够准确预测未见过文档的类别。然而,在工业中,对于一个企业来说,拥有整个文档语料库的情况并不少见,其中很少或根本没有分类,或者现有的分类变得毫无意义。例如,对于Web内容,糟糕的分类管理可能会导致标签被不加区别地应用,从而使通过这些标签进行过滤毫无帮助。我们的工作旨在使用人在回路方法对整个未标记文档语料库进行分类,其中内容所有者手动对每个类别中的一个或两个文档进行分类,其余的可以自动分类。这种“Few-Shot”学习方法需要丰富的文档表示,这样那些已经手动标记的文档就可以被视为原型,而其余文档的自动分类只是测量到原型的距离的简单情况。这种方法使用预先训练的词嵌入,其中使用组成词嵌入的简单加权平均来表示文档。我们已经在现有的标记数据集上测试了该方法的准确性,并在这里提供了结果。我们还提供了代码来重现我们在20个新闻组数据集上获得的结果。

英文摘要:

Most of the literature around text classification treats it as a supervised learning problem: given a corpus of labeled documents, train a classifier such that it can accurately predict the classes of unseen documents. In industry, however, it is not uncommon for a business to have entire corpora of documents where few or none have been classified, or where existing classifications have become meaningless. With web content, for example, poor taxonomy management can result in labels being applied indiscriminately, making filtering by these labels unhelpful. Our work aims to make it possible to classify an entire corpus of unlabeled documents using a human-in-the-loop approach, where the content owner manually classifies just one or two documents per category and the rest can be automatically classified. This "few-shot" learning approach requires rich representations of the documents such that those that have been manually labeled can be treated as prototypes, and automatic classification of the rest is a simple case of measuring the distance to prototypes. This approach uses pre-trained word embeddings, where documents are represented using a simple weighted average of constituent word embeddings. We have tested the accuracy of the approach on existing labeled datasets and provide the results here. We have also made code available for reproducing the results we got on the 20 Newsgroups dataset.

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

↑