Skip to content

Commit

Permalink
Merge pull request #464 from QData/fast-alzantot-doc-fix
Browse files Browse the repository at this point in the history
Rename all instances of faster-alzantot to fast-alzantot
  • Loading branch information
jxmorris12 committed May 23, 2021
2 parents fe8bd66 + ed303a5 commit e9fde99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/1start/what_is_an_adversarial_attack.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ TextAttack attack recipes that fall under this category: deepwordbug, hotflip, p

Some NLP models are trained to measure semantic similarity. Adversarial attacks based on the notion of semantic indistinguishability typically use another NLP model to enforce that perturbations are grammatically valid and semantically similar to the original input.

TextAttack attack recipes that fall under this category: alzantot, bae, bert-attack, faster-alzantot, iga, kuleshov, pso, pwws, textbugger\*, textfooler
TextAttack attack recipes that fall under this category: alzantot, bae, bert-attack, fast-alzantot, iga, kuleshov, pso, pwws, textbugger\*, textfooler

\*The textbugger attack generates perturbations using both typo-like character edits and synonym substitutions. It could be considered to use both definitions of indistinguishability.

Expand Down
2 changes: 1 addition & 1 deletion tests/test_command_line/test_attack.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
(
"run_attack_faster_alzantot_recipe",
(
"textattack attack --model lstm-mr --recipe faster-alzantot --num-examples 3 "
"textattack attack --model lstm-mr --recipe fast-alzantot --num-examples 3 "
"--num-examples-offset 32 --shuffle=False"
),
"tests/sample_outputs/run_attack_faster_alzantot_recipe.txt",
Expand Down
2 changes: 1 addition & 1 deletion textattack/commands/attack/attack_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"alzantot": "textattack.attack_recipes.GeneticAlgorithmAlzantot2018",
"bae": "textattack.attack_recipes.BAEGarg2019",
"bert-attack": "textattack.attack_recipes.BERTAttackLi2020",
"faster-alzantot": "textattack.attack_recipes.FasterGeneticAlgorithmJia2019",
"fast-alzantot": "textattack.attack_recipes.FasterGeneticAlgorithmJia2019",
"deepwordbug": "textattack.attack_recipes.DeepWordBugGao2018",
"hotflip": "textattack.attack_recipes.HotFlipEbrahimi2017",
"input-reduction": "textattack.attack_recipes.InputReductionFeng2018",
Expand Down

0 comments on commit e9fde99

Please sign in to comment.