mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
formatting update
This commit is contained in:
@@ -72,7 +72,9 @@ class WordSwapHowNet(WordSwap):
|
||||
transformed_texts_idx = []
|
||||
for r in replacement_words:
|
||||
if r != word_to_replace:
|
||||
transformed_texts_idx.append(current_text.replace_word_at_index(i, r))
|
||||
transformed_texts_idx.append(
|
||||
current_text.replace_word_at_index(i, r)
|
||||
)
|
||||
transformed_texts.extend(transformed_texts_idx)
|
||||
|
||||
return transformed_texts
|
||||
|
||||
Reference in New Issue
Block a user