TextAttack icon indicating copy to clipboard operation
TextAttack copied to clipboard

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

Results 86 TextAttack issues
Sort by recently updated
recently updated
newest added

Hi I want to implement use textattack to attack my lstm model for detect vulnerability in python code. So I need to use custom tokenizer to tokenize python source code.Could...

question

I would like to employ TextAttack for further research. does TextAttack support setting attack range of input text?

question

the latest attack recipe TextAttack implement is "a2t"(2021). Attack methods in recent 2 years are not available. Would author develop more recent recipes :)

enhancement

Do any of the attacks support targeted classification as a goal function? I do not see it stated anywhere but untargeted classification is mentioned. Manually switching the goal function of...

### Describe the bug I ran into two `flair`-related issues while using the Word Swap by Inflections transformation. The first one required a `flair` update, and the second required a...

bug

Hello, I am experiencing an issue when trying to use the AttackArgs class from the TextAttack library outside of the command line. I'm attempting to use the class programmatically in...

This package uses a small number of GPL/lGPL dependencies/sub-dependencies. My understanding is that this means that the MIT license of this package is invalid, as GPL is a viral/copyleft license....

Hi, In this function words_from_text() in utils/string.py (used in AttackText for generating words list of a given sentence), It seems that the function has difficulty handling quoted words. For example,...

**Describe the bug** Hello, when using the latest version of textattack, when I trying to "from textattack.models.wrappers import TensorFlowModelWrapper" or "from textattack import Attack" will appear. How to solve this...

**Describe the bug** When running a qwerty word swap, there can be a crash if the input string contains numeric/special characters **To Reproduce** Steps to reproduce the behavior: ``` from...