Skip to content

Commit 67199ff

Browse files
authored
Update attacked_text.py
1 parent 899ea46 commit 67199ff

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

textattack/shared/attacked_text.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,9 +470,6 @@ def generate_new_attacked_text(self, new_words):
470470
perturbed_text += adv_word_seq
471471
perturbed_text += original_text # Add all of the ending punctuation.
472472

473-
# Add pointer to self so chain of replacements can be reconstructed.
474-
new_attack_attrs["prev_attacked_text"] = self
475-
476473
# Reform perturbed_text into an OrderedDict.
477474
perturbed_input_texts = perturbed_text.split(AttackedText.SPLIT_TOKEN)
478475
perturbed_input = OrderedDict(

0 commit comments

Comments
 (0)