mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
add interactive mode + test
This commit is contained in:
@@ -162,6 +162,8 @@ class Attack:
|
||||
|
||||
if shuffle:
|
||||
random.shuffle(dataset.examples)
|
||||
|
||||
num_examples = num_examples or len(dataset)
|
||||
|
||||
if num_examples <= 0:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user