QData / TextAttack

TextAttack 🐙 is a Python framework for adversarial attacks, data augmentation, and model training in NLP https://textattack.readthedocs.io/en/master/
https://textattack.readthedocs.io/en/master/
MIT License
2.98k stars 397 forks source link

Word Swap Qwerty Failure Bug Fix #761

Closed jstzwj closed 8 months ago

jstzwj commented 1 year ago

Summary

This PR fixes an IndexError in WordSwapQWERTY when random_one is True and the word contains non-qwerty characters.

This PR is related to #717

Changes

Checklist

jxmorris12 commented 8 months ago

thanks :) this is better!