nlpaug
Natural language processing augmentation library for deep neural networks
Decision gist · record as of 2026-08-14
Yes. nlpaug is actively maintained, has no known vulnerabilities, installs with low friction, and provides a practical toolkit for a common ML workflow. Install it if you need to augment text or audio data for training; skip it if your training pipeline already has dedicated augmentation logic or if you work exclusively with image data.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Some augmenters (ContextualWordEmbsAug, BackTranslationAug, LambadaAug) require optional dependencies like torch, transformers, or nltk; basic augmenters work with the core install.
- Low friction installation with a pure Python wheel and four common runtime dependencies (numpy, pandas, requests, gdown).
- The package is actively maintained with recent commits and no known vulnerabilities.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in commercial and private projects with minimal obligations.
last release 2022-07-07 (1499 days) · last repo commit 2026-08-09 · 4,667 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 189,327 downloads/mo, #9,930 on PyPI
Alternatives
Verify before relying
pip install nlpaug numpy pandas requests gdown
import nlpaug.augmenter.word as naw
aug = naw.SynonymAug(aug_src='wordnet')
augmented_text = aug.augment('The quick brown fox jumps')- Whether pre-trained models (word2vec, GloVe, fasttext) are bundled or must be downloaded separately at runtime.
- Performance characteristics when augmenting large datasets or applying multiple augmenters in sequence.
- Compatibility with specific versions of optional dependencies (torch, transformers, nltk, gensim) beyond what the description lists.
What it is and what it does
nlpaug is a Python library for generating synthetic variations of text and audio data to expand training datasets without manual effort. It provides augmenters—individual transformation operations like synonym substitution, keyboard-error simulation, or audio pitch adjustment—and flows to chain multiple augmenters together. The library integrates with standard ML frameworks (scikit-learn, PyTorch, TensorFlow) and supports textual augmentation at character, word, and sentence levels, plus audio and spectrogram transformations.
The core use case is improving model generalization and robustness by creating diverse training examples from existing data. Some augmenters rely on external language models (BERT, GPT-2, word embeddings) or linguistic resources (WordNet), which are optional dependencies. The library is lightweight and designed to integrate into existing ML pipelines with minimal setup.
Use it for
- Expand small labeled datasets by generating synthetic text variations to train more robust NLP models without manual annotation.
- Simulate adversarial text perturbations (typos, OCR errors, keyboard mistakes) to test model resilience to real-world input noise.
- Augment audio training data by applying pitch, speed, loudness, and noise transformations to improve speech recognition or audio classification.
- Create multilingual training examples through back-translation or contextual word embeddings to improve cross-lingual model performance.
- Build data augmentation pipelines that apply multiple transformations sequentially or probabilistically to generate diverse training batches.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
nlpaug is actively maintained, has no known vulnerabilities, installs with low friction, and provides a practical toolkit for a common ML workflow. Install it if you need to augment text or audio data for training; skip it if your training pipeline already has dedicated augmentation logic or if you work exclusively with image data.
Install
nlpaug on PyPI
Before you install
Low friction installation with a pure Python wheel and four common runtime dependencies (numpy, pandas, requests, gdown). The package is actively maintained with recent commits and no known vulnerabilities.
Some augmenters (ContextualWordEmbsAug, BackTranslationAug, LambadaAug) require optional dependencies like torch, transformers, or nltk; basic augmenters work with the core install.
License in practice
MIT license permits unrestricted use, modification, and distribution in commercial and private projects with minimal obligations.
Quickstart
pip install nlpaug numpy pandas requests gdown
import nlpaug.augmenter.word as naw
aug = naw.SynonymAug(aug_src='wordnet')
augmented_text = aug.augment('The quick brown fox jumps')
Verify before relying
- Whether pre-trained models (word2vec, GloVe, fasttext) are bundled or must be downloaded separately at runtime.
- Performance characteristics when augmenting large datasets or applying multiple augmenters in sequence.
- Compatibility with specific versions of optional dependencies (torch, transformers, nltk, gensim) beyond what the description lists.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesnumpypandasrequestsgdown |
| Maintenance | Actively maintained 1,499 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 189,327 / month, #9,930 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: nlpaug-1.1.11-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “nlp data augmentation”
- nlpaugnlpaug generates synthetic augmented text and audio data for machine…
- batchgeneratorsv2Reimplemented data augmentation transforms for deep learning,…
- augmaxAugmax is a JAX-based image data augmentation framework that chains…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also audiomentations · torch-audiomentations · torchaudio · nvidia-riva-client · ttach · livekit-plugins-inworld · descript-audiotools · openwakeword · flair · imgaug