qdata/textattack

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

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 1 hour ago
Added to GitGenius on September 20th, 2026
Created on October 15th, 2019
Open Issues & Pull Requests: 20 (+0)
GitHub issues: Enabled
Number of forks: 458
Total Stargazers: 3,473 (+0)
Total Subscribers: 34 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 18
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,244 days
Stale 30+ days: 17
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (11)
  • bug (9)
  • question (7)
  • documentation (5)
  • invalid (2)
  • setup issues (2)
  • Windows (1)
  • dataset (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

TextAttack is a Python framework for adversarial attacks, data augmentation, and model training in NLP.

The framework addresses the need to evaluate and improve NLP model robustness by providing tools to generate adversarial examples that expose model vulnerabilities. It works by offering a modular architecture where users can compose attacks from reusable components including transformation methods, constraints, and search algorithms. This design allows researchers to both apply existing attacks and develop new ones systematically.

Developers should adopt TextAttack if they need to stress-test NLP models, conduct adversarial robustness research, or augment datasets to improve model generalization. The tool suits projects ranging from academic research on adversarial attacks to practical data augmentation pipelines for production models. It provides command-line interfaces for common tasks like running attacks and augmentation, making it accessible without deep framework knowledge, while also supporting programmatic usage for custom workflows. The framework includes a model zoo of pretrained models and handles dataset downloads automatically.

The project maintains active continuous integration with automated testing. Development activity shows consistent engagement with the codebase through regular updates and bug fixes. The maintainers provide community support through a dedicated Slack channel for real-time assistance and updates.