Few-Shot Text Classification with Pre-Trained Word Embeddings and a Human in the Loop
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.
Code (1)
Tasks
Few-Shot LearningFew-Shot Text ClassificationGeneral ClassificationManagementtext-classificationText ClassificationWord EmbeddingsSimilar Papers 제목 키워드 기반
CoAPT: Context Attribute words for Prompt Tuning
We propose a novel prompt tuning method called CoAPT(Context Attribute words in Prompt Tuning) for few/zero-shot image classification. The core motivation is that attributes are descriptive words with rich information ab…
AttributeDescriptiveDomain Generalizationimage-classification+2Evaluating Embeddings for One-Shot Classification of Doctor-AI Consultations
Effective communication between healthcare providers and patients is crucial to providing high-quality patient care. In this work, we investigate how Doctor-written and AI-generated texts in healthcare consultations can …
Eliciting Knowledge from Pretrained Language Models for Prototypical Prompt Verbalizer
Recent advances on prompt-tuning cast few-shot classification tasks as a masked language modeling problem. By wrapping input into a template and using a verbalizer which constructs a mapping between label space and label…
ClassificationContrastive LearningLanguage ModelingLanguage Modelling+3English-Malay Word Embeddings Alignment for Cross-lingual Emotion Classification with Hierarchical Attention Network
The main challenge in English-Malay cross-lingual emotion classification is that there are no Malay training emotion corpora. Given that machine translation could fall short in contextually complex tweets, we only limite…
Cross-Lingual Word EmbeddingsEmotion ClassificationFew-Shot LearningMachine Translation+3Zero-Shot Audio Classification via Semantic Embeddings
In this paper, we study zero-shot learning in audio classification via semantic embeddings extracted from textual labels and sentence descriptions of sound classes. Our goal is to obtain a classifier that is capable of r…
Audio ClassificationClassificationGeneral ClassificationSentence+3