QData/TextAttack
TextAttack 🐙 is a Python framework for adversarial attacks, data augmentation, and model training in NLP https://textattack.readthedocs.io/en/master/
Implements modular attack "recipes" combining transformations (word swaps, BERT masking), constraints (semantic similarity, POS consistency), and search methods (genetic algorithms, greedy-WIR) to generate adversarial examples across classification, entailment, and sequence labeling tasks. Provides pre-built integrations with popular models (BERT, DistilBERT, LSTM) and datasets, with parallel GPU support and command-line access to attack execution, dataset augmentation, and model training workflows.
3,377 stars and 7,388 monthly downloads. No commits in the last 6 months. Available on PyPI.
Stars
3,377
Forks
439
Language
Python
License
MIT
Category
Last pushed
Jul 10, 2025
Monthly downloads
7,388
Commits (30d)
0
Dependencies
22
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/QData/TextAttack"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related frameworks
ebagdasa/backdoors101
Backdoors Framework for Deep Learning and Federated Learning. A light-weight tool to conduct...
THUYimingLi/backdoor-learning-resources
A list of backdoor learning resources
zhangzp9970/MIA
Unofficial pytorch implementation of paper: Model Inversion Attacks that Exploit Confidence...
LukasStruppek/Plug-and-Play-Attacks
[ICML 2022 / ICLR 2024] Source code for our papers "Plug & Play Attacks: Towards Robust and...
VinAIResearch/Warping-based_Backdoor_Attack-release
WaNet - Imperceptible Warping-based Backdoor Attack (ICLR 2021)