Skip to content

Commit

Permalink
Merge pull request #693 from 89x98/master
Browse files Browse the repository at this point in the history
Fix a issue may caused by attacked_text.py
  • Loading branch information
jxmorris12 committed Nov 1, 2022
2 parents 3681f9d + 67199ff commit 5043fb6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions textattack/shared/attacked_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,6 @@ def generate_new_attacked_text(self, new_words):
perturbed_text += adv_word_seq
perturbed_text += original_text # Add all of the ending punctuation.

# Add pointer to self so chain of replacements can be reconstructed.
new_attack_attrs["prev_attacked_text"] = self

# Reform perturbed_text into an OrderedDict.
perturbed_input_texts = perturbed_text.split(AttackedText.SPLIT_TOKEN)
perturbed_input = OrderedDict(
Expand Down

0 comments on commit 5043fb6

Please sign in to comment.