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

Katherine Bailey, Sunny Chopra
4/5/2018
cs.CL

Official code: katbailey/few-shot-text-classification (89 stars, Jupyter Notebook, last commit 2018-04-09).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Code for reproducing the results from the paper Few Shot Text Classification with a Human in the Loop

8922Jupyter Notebook, PythonMar 28, 20188 years ago

Similar Papers

Cite this paper

@article{bailey2018fewshot,
  title  = {Few-Shot Text Classification with Pre-Trained Word Embeddings and a Human in the Loop},
  author = {Katherine Bailey and Sunny Chopra},
  year   = {2018},
  eprint = {1804.02063},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1804.02063}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1804.02063.svg)](https://codeofpaper.com/paper/1804.02063)

Discussion