QData/TextAttack

TextAttack 🐙 is a Python framework for adversarial attacks, data augmentation, and model training in NLP https://textattack.readthedocs.io/en/master/

67
/ 100
Established

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.

Stale 6m
Maintenance 2 / 25
Adoption 19 / 25
Maturity 25 / 25
Community 21 / 25

How are scores calculated?

Stars

3,377

Forks

439

Language

Python

License

MIT

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.