Skip to content

The attacked_text is recursively called with no stop when using TextBugger attack. #690

@plasmashen

Description

@plasmashen

Describe the bug
The attacked_text is recursively called with no stop when using TextBugger attack.

To Reproduce
It seems that word_swap_embedding.py cause this problem.

Screenshots or Traceback
image

System Information (please complete the following information):

  • OS: Linux
  • Library versions (e.g. torch==1.7.1, transformers==4.21.2)
  • Textattack version 0.3.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions