#8686th of 206 in ML frameworks and libraries

nlpaug

Python library for augmenting text, audio and spectrogram training data

Stars
4.7k
License
MIT
Last commit
Oct 2026
Last release
Oct 2026
Language
Jupyter Notebook
Stars, last 29 weeks+28
22 Apr 2026: 4,637 stars29 Apr 2026: 4,637 stars6 May 2026: 4,640 stars13 May 2026: 4,640 stars20 May 2026: 4,641 stars27 May 2026: 4,643 stars3 Jun 2026: 4,644 stars10 Jun 2026: 4,644 stars17 Jun 2026: 4,645 stars24 Jun 2026: 4,645 stars1 Jul 2026: 4,646 stars8 Jul 2026: 4,649 stars15 Jul 2026: 4,649 stars22 Jul 2026: 4,651 stars29 Jul 2026: 4,653 stars5 Aug 2026: 4,656 stars12 Aug 2026: 4,656 stars19 Aug 2026: 4,656 stars26 Aug 2026: 4,657 stars2 Sept 2026: 4,657 stars9 Sept 2026: 4,658 stars16 Sept 2026: 4,659 stars23 Sept 2026: 4,660 stars30 Sept 2026: 4,661 stars7 Oct 2026: 4,663 stars14 Oct 2026: 4,663 stars21 Oct 2026: 4,663 stars28 Oct 2026: 4,664 stars4 Nov 2026: 4,664 stars11 Nov 2026: 4,665 stars

4,637 on 22 Apr 20264,665 on 11 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

nlpaug is a Python library that generates synthetic training data by applying augmenters to text, audio waveforms and spectrograms. Text augmenters work at character, word and sentence level, using keyboard and OCR error simulation, WordNet/PPDB synonyms, word embeddings, BERT-family and GPT2 models, and back-translation. Augmenters can be chained with Sequential or Sometimes flows. Version 2.0.x requires Python 3.12+.

Who it is for: ML engineers expanding NLP or audio training datasets

Strengths

  • Covers character, word and sentence text augmentation plus audio and spectrogram in one API
  • Sequential and Sometimes flows chain augmenters; change-log records what was modified
  • Optional extras (transformers, nltk, word-embs, audio, lambada) keep core install light
  • Default pytest suite runs offline with mocked transformer models

Weaknesses

  • Requires Python 3.12+ in 2.x, excluding older environments
  • WordEmbsAug needs manual download of word2vec, GloVe or fasttext files
  • Transformer-based augmenters pull heavy dependencies such as torch
  • Does not generate data with modern instruction-tuned LLMs; relies on classic models like BERT and GPT2

What it needs

  • GPU optional
  • Needs nltk, transformers, torch, gensim, librosa, PPDB language pack (optional)
  • Models: BERT, DistilBERT, RoBERTa, XLNet, GPT2

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Also in ML frameworks and libraries

See all 206
Also in ML frameworks and libraries
RankProjectScore
1transformersPython library defining open models for text, vision, audio and multimodal tasks168.9k stars+1,573 (+0.9%) in 30 daysApache-2.094 out of 100
2ultralyticsPython library and CLI for training and running YOLO vision models63.3k stars+1,004 (+1.6%) in 30 daysAGPL-3.094 out of 100
3pytorchPython tensor library with GPU support and tape-based autograd105.5k stars+1,036 (+1.0%) in 30 dayscustom license93 out of 100
#4pytorch-image-modelsPyTorch library of image models, pretrained weights and training scripts37.3k stars+107 (+0.3%) in 30 daysApache-2.093 out of 100
#5supervisionPython toolkit for loading, annotating and counting computer vision detections Live demo ↗ (opens in a new tab)51.6k stars+521 (+1.0%) in 30 daysMIT92 out of 100