Skip to content

Commit

Permalink
Merge pull request #592 from QData/doc-fix
Browse files Browse the repository at this point in the history
change the default installation documentation to textattack[tensorflow]
  • Loading branch information
qiyanjun committed Dec 3, 2021
2 parents 5f825f6 + 4c9d873 commit 7a80944
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/0_get_started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ There are two ways to install TextAttack. If you want to simply use as it is, in
## Install with pip
Simply run

pip install textattack
pip install textattack[tensorflow]

## Install from Source
To install TextAttack from source, first clone the repo by running
Expand Down
5 changes: 5 additions & 0 deletions textattack/attack_recipes/bert_attack_li_2020.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
(BERT-Attack: Adversarial Attack Against BERT Using BERT)
.. warning::
This attack is super slow
(see https://github.com/QData/TextAttack/issues/586)
Consider using smaller values for "max_candidates".
"""
from textattack import Attack
from textattack.constraints.overlap import MaxWordsPerturbed
Expand Down

0 comments on commit 7a80944

Please sign in to comment.