TextAttack
TextAttack copied to clipboard
TextAttack 🐙 is a Python framework for adversarial attacks, data augmentation, and model training in NLP https://textattack.readthedocs.io/en/master/
## Summary This PR adds the [Bad Characters: Imperceptible NLP](https://arxiv.org/abs/2106.09898) attack. It introduces a new dimension to attacks: perturbations that are invisible (on some rendering systems). Full details can be...
# What does this PR do? ## Summary Fix unwanted non-determinism text order in `CompositeTransformation`. Not using set for text makes reproducible runs possible. ## Additions ## Changes ## Deletions...
optoins -> options
# What does this PR do? Adds a remote model wrapper class based on the TextFooler example. ## Summary This PR adapts the Textfooler example https://textattack.readthedocs.io/en/master/_modules/textattack/attack_recipes/textfooler_jin_2019.html to instead target BERT...
**Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Run following command `textattack ...` 2. Run following code...
def get_indices_to_order(self, current_text, **kwargs): """Applies ``pre_transformation_constraints`` to ``text`` to get all the indices that can be used to search and order. Args: current_text: The current ``AttackedText`` for which we need...