mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
allow maximization goal functions
This commit is contained in:
@@ -114,7 +114,7 @@ def run(args):
|
||||
|
||||
num_results += 1
|
||||
|
||||
if type(result) == textattack.attack_results.SuccessfulAttackResult:
|
||||
if type(result) == textattack.attack_results.SuccessfulAttackResult or type(result) == textattack.attack_results.MaximizedAttackResult:
|
||||
num_successes += 1
|
||||
if type(result) == textattack.attack_results.FailedAttackResult:
|
||||
num_failures += 1
|
||||
|
||||
Reference in New Issue
Block a user