.gitignore
CONTRIBUTING.md
LICENSE
Makefile
README.md
README_ZH.md
pytest.ini
requirements.txt
setup.cfg
setup.py
.github/pull_request_template.md
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/custom.md
.github/ISSUE_TEMPLATE/feature_request.md
.github/workflows/check-formatting.yml
.github/workflows/codeql-analysis.yml
.github/workflows/make-docs.yml
.github/workflows/publish-to-pypi.yml
.github/workflows/run-pytest.yml
docs/Makefile
docs/__init__.py
docs/conf.py
docs/environment.yml
docs/favicon.png
docs/index.rst
docs/make.bat
docs/requirements.txt
docs/0_get_started/basic-Intro.rst
docs/0_get_started/command_line_usage.md
docs/0_get_started/installation.md
docs/0_get_started/quick_api_tour.rst
docs/1start/A2TforVanillaAT.md
docs/1start/FAQ.md
docs/1start/api-design-tips.md
docs/1start/attacks4Components.md
docs/1start/benchmark-search.md
docs/1start/multilingual-visualization.md
docs/1start/quality-SOTA-recipes.md
docs/1start/references.md
docs/1start/support.md
docs/1start/what_is_an_adversarial_attack.md
docs/2notebook/.gitignore
docs/2notebook/0_End_to_End.ipynb
docs/2notebook/1_Introduction_and_Transformations.ipynb
docs/2notebook/2_Constraints.ipynb
docs/2notebook/3_Augmentations.ipynb
docs/2notebook/4_Custom_Datasets_Word_Embedding.ipynb
docs/2notebook/Example_0_tensorflow.ipynb
docs/2notebook/Example_1_sklearn.ipynb
docs/2notebook/Example_2_allennlp.ipynb
docs/2notebook/Example_3_Keras.ipynb
docs/2notebook/Example_4_CamemBERT.ipynb
docs/2notebook/Example_5_Explain_BERT.ipynb
docs/2notebook/Example_6_Chinese_Attack.ipynb
docs/3recipes/attack_recipes.rst
docs/3recipes/attack_recipes_cmd.md
docs/3recipes/augmenter_recipes.rst
docs/3recipes/augmenter_recipes_cmd.md
docs/3recipes/models.md
docs/_static/css/custom.css
docs/_static/imgs/overview.png
docs/_static/imgs/benchmark/search-example.pdf
docs/_static/imgs/benchmark/search-fig1.png
docs/_static/imgs/benchmark/search-fig2.png
docs/_static/imgs/benchmark/search-table1.png
docs/_static/imgs/benchmark/search-table2.png
docs/_static/imgs/benchmark/search-table31.png
docs/_static/imgs/benchmark/search-table32.png
docs/_static/imgs/benchmark/table3.png
docs/_static/imgs/benchmark/table4.png
docs/_static/imgs/benchmark/table5-main.png
docs/_static/imgs/benchmark/table7.png
docs/_static/imgs/benchmark/table9.png
docs/_static/imgs/intro/01-categorized-attacks.png
docs/_static/imgs/intro/ae_papers.png
docs/_static/imgs/intro/mr_aes.png
docs/_static/imgs/intro/mr_aes_table.png
docs/_static/imgs/intro/pig_airliner.png
docs/_static/imgs/intro/textattack_components.png
docs/_static/imgs/intro/textattack_ecosystem.png
docs/api/attack.rst
docs/api/attack_results.rst
docs/api/attacker.rst
docs/api/constraints.rst
docs/api/datasets.rst
docs/api/goal_functions.rst
docs/api/search_methods.rst
docs/api/trainer.rst
docs/api/transformations.rst
docs/apidoc/textattack.attack_recipes.rst
docs/apidoc/textattack.attack_results.rst
docs/apidoc/textattack.augmentation.rst
docs/apidoc/textattack.commands.rst
docs/apidoc/textattack.constraints.grammaticality.language_models.google_language_model.rst
docs/apidoc/textattack.constraints.grammaticality.language_models.learning_to_write.rst
docs/apidoc/textattack.constraints.grammaticality.language_models.rst
docs/apidoc/textattack.constraints.grammaticality.rst
docs/apidoc/textattack.constraints.overlap.rst
docs/apidoc/textattack.constraints.pre_transformation.rst
docs/apidoc/textattack.constraints.rst
docs/apidoc/textattack.constraints.semantics.rst
docs/apidoc/textattack.constraints.semantics.sentence_encoders.infer_sent.rst
docs/apidoc/textattack.constraints.semantics.sentence_encoders.rst
docs/apidoc/textattack.constraints.semantics.sentence_encoders.universal_sentence_encoder.rst
docs/apidoc/textattack.datasets.helpers.rst
docs/apidoc/textattack.datasets.rst
docs/apidoc/textattack.goal_function_results.rst
docs/apidoc/textattack.goal_functions.classification.rst
docs/apidoc/textattack.goal_functions.rst
docs/apidoc/textattack.goal_functions.text.rst
docs/apidoc/textattack.loggers.rst
docs/apidoc/textattack.metrics.attack_metrics.rst
docs/apidoc/textattack.metrics.quality_metrics.rst
docs/apidoc/textattack.metrics.rst
docs/apidoc/textattack.models.helpers.rst
docs/apidoc/textattack.models.rst
docs/apidoc/textattack.models.tokenizers.rst
docs/apidoc/textattack.models.wrappers.rst
docs/apidoc/textattack.rst
docs/apidoc/textattack.search_methods.rst
docs/apidoc/textattack.shared.rst
docs/apidoc/textattack.shared.utils.rst
docs/apidoc/textattack.transformations.rst
docs/apidoc/textattack.transformations.sentence_transformations.rst
docs/apidoc/textattack.transformations.word_insertions.rst
docs/apidoc/textattack.transformations.word_merges.rst
docs/apidoc/textattack.transformations.word_swaps.rst
examples/attack/attack_camembert.py
examples/attack/attack_from_components.sh
examples/attack/attack_huggingface_deepwordbug.sh
examples/attack/attack_keras_parallel.py
examples/attack/attack_roberta_sst2_textfooler.sh
examples/augmentation/.gitignore
examples/augmentation/augment.csv
examples/augmentation/augment.sh
examples/augmentation/examples.csv
examples/dataset/chinese_data_demo.tsv
examples/train/train_albert_snli_entailment.sh
examples/train/train_bert_stsb_similarity.sh
examples/train/train_lstm_imdb_sentiment_classification.sh
examples/train/train_lstm_rotten_tomatoes_sentiment_classification.sh
tests/test_attacked_text.py
tests/test_augment_api.py
tests/test_metric_api.py
tests/test_prompt_augmentation.py
tests/test_tokenizers.py
tests/test_transformations.py
tests/test_word_embedding.py
tests/sample_inputs/__init__.py
tests/sample_inputs/attack_from_file.py
tests/sample_inputs/augment.csv.txt
tests/sample_inputs/sst_model_and_dataset.py
tests/sample_outputs/augment_test.csv.txt
tests/sample_outputs/csv_attack_log.csv
tests/sample_outputs/eval_model_hub_rt.txt
tests/sample_outputs/eval_snli.txt
tests/sample_outputs/interactive_mode.txt
tests/sample_outputs/json_attack_summary.json
tests/sample_outputs/kuleshov_cnn_sst_2.txt
tests/sample_outputs/list_augmentation_recipes.txt
tests/sample_outputs/run_attack_cnn_cola.txt
tests/sample_outputs/run_attack_deepwordbug_bert_snli_10.txt
tests/sample_outputs/run_attack_deepwordbug_lstm_mr_2.txt
tests/sample_outputs/run_attack_faster_alzantot_recipe.txt
tests/sample_outputs/run_attack_flair_pos_tagger_bert_score.txt
tests/sample_outputs/run_attack_from_file.txt
tests/sample_outputs/run_attack_gradient_greedy_word_wir.txt
tests/sample_outputs/run_attack_hotflip_lstm_mr_4.txt
tests/sample_outputs/run_attack_hotflip_lstm_mr_4_adv_metrics.txt
tests/sample_outputs/run_attack_nonoverlapping_t5ende_editdistance_bleu.txt
tests/sample_outputs/run_attack_stanza_pos_tagger.txt
tests/sample_outputs/run_attack_targetedclassification2_wordnet_langtool_log-to-csv_beamsearch2_attack_n.txt
tests/sample_outputs/run_attack_transformers_datasets.txt
tests/sample_outputs/run_attack_transformers_datasets_adv_metrics.txt
tests/sample_outputs/txt_attack_log.txt
tests/test_command_line/helpers.py
tests/test_command_line/test_attack.py
tests/test_command_line/test_augment.py
tests/test_command_line/test_eval.py
tests/test_command_line/test_list.py
tests/test_command_line/test_loggers.py
tests/test_command_line/test_train.py
tests/test_command_line/update_test_outputs.py
tests/test_constraints/test_pretransformation_constraints.py
textattack/__init__.py
textattack/__main__.py
textattack/attack.py
textattack/attack_args.py
textattack/attacker.py
textattack/augment_args.py
textattack/dataset_args.py
textattack/model_args.py
textattack/trainer.py
textattack/training_args.py
textattack.egg-info/PKG-INFO
textattack.egg-info/SOURCES.txt
textattack.egg-info/dependency_links.txt
textattack.egg-info/entry_points.txt
textattack.egg-info/requires.txt
textattack.egg-info/top_level.txt
textattack/attack_recipes/__init__.py
textattack/attack_recipes/a2t_yoo_2021.py
textattack/attack_recipes/attack_recipe.py
textattack/attack_recipes/bae_garg_2019.py
textattack/attack_recipes/bert_attack_li_2020.py
textattack/attack_recipes/checklist_ribeiro_2020.py
textattack/attack_recipes/chinese_recipe.py
textattack/attack_recipes/clare_li_2020.py
textattack/attack_recipes/deepwordbug_gao_2018.py
textattack/attack_recipes/faster_genetic_algorithm_jia_2019.py
textattack/attack_recipes/french_recipe.py
textattack/attack_recipes/genetic_algorithm_alzantot_2018.py
textattack/attack_recipes/hotflip_ebrahimi_2017.py
textattack/attack_recipes/iga_wang_2019.py
textattack/attack_recipes/input_reduction_feng_2018.py
textattack/attack_recipes/kuleshov_2017.py
textattack/attack_recipes/morpheus_tan_2020.py
textattack/attack_recipes/pruthi_2019.py
textattack/attack_recipes/pso_zang_2020.py
textattack/attack_recipes/pwws_ren_2019.py
textattack/attack_recipes/seq2sick_cheng_2018_blackbox.py
textattack/attack_recipes/spanish_recipe.py
textattack/attack_recipes/textbugger_li_2018.py
textattack/attack_recipes/textfooler_jin_2019.py
textattack/attack_results/__init__.py
textattack/attack_results/attack_result.py
textattack/attack_results/failed_attack_result.py
textattack/attack_results/maximized_attack_result.py
textattack/attack_results/skipped_attack_result.py
textattack/attack_results/successful_attack_result.py
textattack/augmentation/__init__.py
textattack/augmentation/augmenter.py
textattack/augmentation/recipes.py
textattack/commands/__init__.py
textattack/commands/attack_command.py
textattack/commands/attack_resume_command.py
textattack/commands/augment_command.py
textattack/commands/benchmark_recipe_command.py
textattack/commands/eval_model_command.py
textattack/commands/list_things_command.py
textattack/commands/peek_dataset_command.py
textattack/commands/textattack_cli.py
textattack/commands/textattack_command.py
textattack/commands/train_model_command.py
textattack/constraints/__init__.py
textattack/constraints/constraint.py
textattack/constraints/pre_transformation_constraint.py
textattack/constraints/grammaticality/__init__.py
textattack/constraints/grammaticality/cola.py
textattack/constraints/grammaticality/language_tool.py
textattack/constraints/grammaticality/part_of_speech.py
textattack/constraints/grammaticality/language_models/__init__.py
textattack/constraints/grammaticality/language_models/gpt2.py
textattack/constraints/grammaticality/language_models/language_model_constraint.py
textattack/constraints/grammaticality/language_models/google_language_model/__init__.py
textattack/constraints/grammaticality/language_models/google_language_model/alzantot_goog_lm.py
textattack/constraints/grammaticality/language_models/google_language_model/google_language_model.py
textattack/constraints/grammaticality/language_models/google_language_model/lm_data_utils.py
textattack/constraints/grammaticality/language_models/google_language_model/lm_utils.py
textattack/constraints/grammaticality/language_models/learning_to_write/__init__.py
textattack/constraints/grammaticality/language_models/learning_to_write/adaptive_softmax.py
textattack/constraints/grammaticality/language_models/learning_to_write/language_model_helpers.py
textattack/constraints/grammaticality/language_models/learning_to_write/learning_to_write.py
textattack/constraints/grammaticality/language_models/learning_to_write/rnn_model.py
textattack/constraints/overlap/__init__.py
textattack/constraints/overlap/bleu_score.py
textattack/constraints/overlap/chrf_score.py
textattack/constraints/overlap/levenshtein_edit_distance.py
textattack/constraints/overlap/max_words_perturbed.py
textattack/constraints/overlap/meteor_score.py
textattack/constraints/pre_transformation/__init__.py
textattack/constraints/pre_transformation/input_column_modification.py
textattack/constraints/pre_transformation/max_modification_rate.py
textattack/constraints/pre_transformation/max_num_words_modified.py
textattack/constraints/pre_transformation/max_word_index_modification.py
textattack/constraints/pre_transformation/min_word_length.py
textattack/constraints/pre_transformation/repeat_modification.py
textattack/constraints/pre_transformation/stopword_modification.py
textattack/constraints/pre_transformation/unmodifiable_indices.py
textattack/constraints/pre_transformation/unmodifiable_phrases.py
textattack/constraints/semantics/__init__.py
textattack/constraints/semantics/bert_score.py
textattack/constraints/semantics/word_embedding_distance.py
textattack/constraints/semantics/sentence_encoders/__init__.py
textattack/constraints/semantics/sentence_encoders/sentence_encoder.py
textattack/constraints/semantics/sentence_encoders/thought_vector.py
textattack/constraints/semantics/sentence_encoders/infer_sent/__init__.py
textattack/constraints/semantics/sentence_encoders/infer_sent/infer_sent.py
textattack/constraints/semantics/sentence_encoders/infer_sent/infer_sent_model.py
textattack/constraints/semantics/sentence_encoders/sentence_bert/__init__.py
textattack/constraints/semantics/sentence_encoders/sentence_bert/sbert.py
textattack/constraints/semantics/sentence_encoders/universal_sentence_encoder/__init__.py
textattack/constraints/semantics/sentence_encoders/universal_sentence_encoder/multilingual_universal_sentence_encoder.py
textattack/constraints/semantics/sentence_encoders/universal_sentence_encoder/universal_sentence_encoder.py
textattack/datasets/__init__.py
textattack/datasets/dataset.py
textattack/datasets/huggingface_dataset.py
textattack/datasets/helpers/__init__.py
textattack/datasets/helpers/ted_multi.py
textattack/goal_function_results/__init__.py
textattack/goal_function_results/classification_goal_function_result.py
textattack/goal_function_results/goal_function_result.py
textattack/goal_function_results/text_to_text_goal_function_result.py
textattack/goal_functions/__init__.py
textattack/goal_functions/goal_function.py
textattack/goal_functions/classification/__init__.py
textattack/goal_functions/classification/classification_goal_function.py
textattack/goal_functions/classification/hardlabel_classification.py
textattack/goal_functions/classification/input_reduction.py
textattack/goal_functions/classification/targeted_classification.py
textattack/goal_functions/classification/untargeted_classification.py
textattack/goal_functions/text/__init__.py
textattack/goal_functions/text/minimize_bleu.py
textattack/goal_functions/text/non_overlapping_output.py
textattack/goal_functions/text/text_to_text_goal_function.py
textattack/llms/__init__.py
textattack/llms/chat_gpt_wrapper.py
textattack/llms/huggingface_llm_wrapper.py
textattack/loggers/__init__.py
textattack/loggers/attack_log_manager.py
textattack/loggers/csv_logger.py
textattack/loggers/file_logger.py
textattack/loggers/json_summary_logger.py
textattack/loggers/logger.py
textattack/loggers/visdom_logger.py
textattack/loggers/weights_and_biases_logger.py
textattack/metrics/__init__.py
textattack/metrics/metric.py
textattack/metrics/recipe.py
textattack/metrics/attack_metrics/__init__.py
textattack/metrics/attack_metrics/attack_queries.py
textattack/metrics/attack_metrics/attack_success_rate.py
textattack/metrics/attack_metrics/words_perturbed.py
textattack/metrics/quality_metrics/__init__.py
textattack/metrics/quality_metrics/bert_score.py
textattack/metrics/quality_metrics/meteor_score.py
textattack/metrics/quality_metrics/perplexity.py
textattack/metrics/quality_metrics/sentence_bert.py
textattack/metrics/quality_metrics/use.py
textattack/models/README.md
textattack/models/__init__.py
textattack/models/helpers/__init__.py
textattack/models/helpers/glove_embedding_layer.py
textattack/models/helpers/lstm_for_classification.py
textattack/models/helpers/t5_for_text_to_text.py
textattack/models/helpers/utils.py
textattack/models/helpers/word_cnn_for_classification.py
textattack/models/tokenizers/__init__.py
textattack/models/tokenizers/glove_tokenizer.py
textattack/models/tokenizers/t5_tokenizer.py
textattack/models/wrappers/__init__.py
textattack/models/wrappers/huggingface_model_wrapper.py
textattack/models/wrappers/model_wrapper.py
textattack/models/wrappers/pytorch_model_wrapper.py
textattack/models/wrappers/sklearn_model_wrapper.py
textattack/models/wrappers/tensorflow_model_wrapper.py
textattack/prompt_augmentation/__init__.py
textattack/prompt_augmentation/prompt_augmentation_pipeline.py
textattack/search_methods/__init__.py
textattack/search_methods/alzantot_genetic_algorithm.py
textattack/search_methods/beam_search.py
textattack/search_methods/genetic_algorithm.py
textattack/search_methods/greedy_search.py
textattack/search_methods/greedy_word_swap_wir.py
textattack/search_methods/improved_genetic_algorithm.py
textattack/search_methods/particle_swarm_optimization.py
textattack/search_methods/population_based_search.py
textattack/search_methods/search_method.py
textattack/shared/__init__.py
textattack/shared/attacked_text.py
textattack/shared/checkpoint.py
textattack/shared/chinese_homophone_char.txt
textattack/shared/data.py
textattack/shared/validators.py
textattack/shared/word_embeddings.py
textattack/shared/utils/__init__.py
textattack/shared/utils/importing.py
textattack/shared/utils/install.py
textattack/shared/utils/misc.py
textattack/shared/utils/strings.py
textattack/shared/utils/tensor.py
textattack/transformations/__init__.py
textattack/transformations/composite_transformation.py
textattack/transformations/transformation.py
textattack/transformations/word_deletion.py
textattack/transformations/word_innerswap_random.py
textattack/transformations/sentence_transformations/__init__.py
textattack/transformations/sentence_transformations/back_transcription.py
textattack/transformations/sentence_transformations/back_translation.py
textattack/transformations/sentence_transformations/sentence_transformation.py
textattack/transformations/word_insertions/__init__.py
textattack/transformations/word_insertions/word_insertion.py
textattack/transformations/word_insertions/word_insertion_masked_lm.py
textattack/transformations/word_insertions/word_insertion_random_synonym.py
textattack/transformations/word_merges/__init__.py
textattack/transformations/word_merges/word_merge.py
textattack/transformations/word_merges/word_merge_masked_lm.py
textattack/transformations/word_swaps/__init__.py
textattack/transformations/word_swaps/word_swap.py
textattack/transformations/word_swaps/word_swap_change_location.py
textattack/transformations/word_swaps/word_swap_change_name.py
textattack/transformations/word_swaps/word_swap_change_number.py
textattack/transformations/word_swaps/word_swap_contract.py
textattack/transformations/word_swaps/word_swap_embedding.py
textattack/transformations/word_swaps/word_swap_extend.py
textattack/transformations/word_swaps/word_swap_gradient_based.py
textattack/transformations/word_swaps/word_swap_homoglyph_swap.py
textattack/transformations/word_swaps/word_swap_hownet.py
textattack/transformations/word_swaps/word_swap_inflections.py
textattack/transformations/word_swaps/word_swap_masked_lm.py
textattack/transformations/word_swaps/word_swap_neighboring_character_swap.py
textattack/transformations/word_swaps/word_swap_qwerty.py
textattack/transformations/word_swaps/word_swap_random_character_deletion.py
textattack/transformations/word_swaps/word_swap_random_character_insertion.py
textattack/transformations/word_swaps/word_swap_random_character_substitution.py
textattack/transformations/word_swaps/word_swap_wordnet.py
textattack/transformations/word_swaps/chn_transformations/__init__.py
textattack/transformations/word_swaps/chn_transformations/chinese_homophone_character_swap.py
textattack/transformations/word_swaps/chn_transformations/chinese_morphonym_character_swap.py
textattack/transformations/word_swaps/chn_transformations/chinese_word_swap_hownet.py
textattack/transformations/word_swaps/chn_transformations/chinese_word_swap_masked.py