#119 · Primary category: NLP Tools & Text Processing
small-text
Active Learning for Text Classification in Python
Project last updated:05/24/26
GitHub Stars
646
Forks
78
Contributors
10
License
MIT
Why we included this project
Labeled data is usually the bottleneck when you train a text classifier, and small-text attacks that problem directly. It implements active learning: instead of labeling a random sample, you let the model flag the unlabeled documents that would teach it the most, then annotate those. The query strategies, initialization routines, and stopping criteria are interchangeable and plug into scikit-learn, PyTorch, and Hugging Face transformers, so the same loop works on a lightweight CPU model or a GPU-backed transformer. That modularity suits both controlled experiments and a real labeling pipeline, and the documentation includes notebooks and worked examples. If you need to bootstrap training data for document classification or topic tagging without a large pre-labeled corpus, this is a concrete way to cut annotation cost.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
flair
A very simple framework for state-of-the-art Natural Language Processing (NLP)
compromise
modest natural-language processing
tokenizers
💥 Fast State-of-the-Art Tokenizers optimized for Research and Production
CoreNLP
CoreNLP: A Java suite of core NLP tools for tokenization, sentence segmentation, NER, parsing, coreference, sentiment analysis, etc.
Chinese-Word-Vectors
100+ Chinese Word Vectors 上百种预训练中文词向量