#119 · Primary category: NLP Tools & Text Processing

small-text

active-learning deep-learning language-models llms looking-for-contributors machine-learning natural-language-processing nlp python pytorch small-language-models text-classification transformers

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