mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
remove build files
This commit is contained in:
@@ -48,10 +48,10 @@ def run(args):
|
||||
|
||||
tokenized_text = textattack.shared.tokenized_text.TokenizedText(text, goal_function.model.tokenizer)
|
||||
|
||||
result = goal_function.get_results([tokenized_text], goal_function.get_output(tokenized_text))[0]
|
||||
result = goal_function.get_result(tokenized_text, goal_function.get_output(tokenized_text))
|
||||
print('Attacking...')
|
||||
|
||||
result = next(attack.attack_dataset([(result.output, text)]))
|
||||
result = next(attack.attack_dataset([(text, result.output)]))
|
||||
print(result.__str__(color_method='stdout'))
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user