1
0
mirror of https://github.com/QData/TextAttack.git synced 2021-10-13 00:05:06 +03:00

make requested fixes

This commit is contained in:
uvafan
2020-05-18 18:30:23 -04:00
parent 0794f6ed38
commit 8c265fe23f
20 changed files with 113 additions and 176 deletions

View File

@@ -13,9 +13,9 @@ class Attack:
An attack generates adversarial examples on text.
This is an abstract class that contains main helper functionality for
attacks. An attack is comprised of a search method, which makes use of
a goal function, a transformation, and a set of one or more linguistic
constraints that successful examples must meet.
attacks. An attack is comprised of a search method, goal function,
a transformation, and a set of one or more linguistic constraints that
successful examples must meet.
Args:
goal_function: A function for determining how well a perturbation is doing at achieving the attack's goal.
@@ -67,7 +67,7 @@ class Attack:
transformation:
text:
original text (:obj:`type`, optional): Defaults to None.
apply_constraints: Whether or not to apply (non-modification) constraints
apply_constraints: Whether or not to apply non-modification constraints
**kwargs:
Returns: