Skip to content

Commit 5043fb6

Browse files
authored
Merge pull request #693 from 89x98/master
Fix a issue may caused by attacked_text.py
2 parents 3681f9d + 67199ff commit 5043fb6

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
@@ -459,9 +459,6 @@ def generate_new_attacked_text(self, new_words):
459459
perturbed_text += adv_word_seq
460460
perturbed_text += original_text # Add all of the ending punctuation.
461461

462-
# Add pointer to self so chain of replacements can be reconstructed.
463-
new_attack_attrs["prev_attacked_text"] = self
464-
465462
# Reform perturbed_text into an OrderedDict.
466463
perturbed_input_texts = perturbed_text.split(AttackedText.SPLIT_TOKEN)
467464
perturbed_input = OrderedDict(

0 commit comments

Comments
 (0)