├── README.md ├── __pycache__ ├── attacks.cpython-36.pyc ├── biLstm.cpython-36.pyc ├── biLstm_char_only.cpython-36.pyc └── biLstm_with_chars.cpython-36.pyc ├── attacks.py ├── biLstm.py ├── biLstm_char_only.py ├── biLstm_with_chars.py ├── data └── classes │ ├── dev.txt │ ├── split.py │ ├── test.txt │ └── train.txt ├── defenses └── scRNN │ ├── __pycache__ │ ├── corrector.cpython-36.pyc │ ├── model.cpython-36.pyc │ └── utils.cpython-36.pyc │ ├── corrector.py │ ├── model.py │ ├── model_dumps │ ├── scrnn_TASK_NAME=MRPC__VOCAB_SIZE=9999_REP_LIST=swap_key_add_drop_REP_PROBS=0.25:0.25:0.25:0.25 │ ├── scrnn_TASK_NAME=RTE__VOCAB_SIZE=9999_REP_LIST=swap_key_add_drop_REP_PROBS=0.25:0.25:0.25:0.25 │ ├── scrnn_VOCAB_SIZE=78470_REP_LIST=swap_add_key_drop_REP_PROBS=0.25:0.25:0.25:0.25 │ └── scrnn_VOCAB_SIZE=9999_REP_LIST=swap_key_add_drop_REP_PROBS=0.25:0.25:0.25:0.25 │ ├── train.py │ ├── utils.py │ └── vocab │ ├── CHAR_VOCAB.p │ ├── CHAR_VOCAB_ 16578.p │ ├── CHAR_VOCAB_ 16579.p │ ├── CHAR_VOCAB_ 16580.p │ ├── CHAR_VOCAB_ 78470.p │ ├── CHAR_VOCAB_ 9999.p │ ├── MRPC_CHAR_VOCAB_ 9999.p │ ├── MRPC_i2w_9999.p │ ├── MRPC_w2i_9999.p │ ├── RTE_CHAR_VOCAB_ 14999.p │ ├── RTE_CHAR_VOCAB_ 9999.p │ ├── RTE_i2w_14999.p │ ├── RTE_i2w_9999.p │ ├── RTE_w2i_14999.p │ ├── RTE_w2i_9999.p │ ├── i2w.p │ ├── i2w_16578.p │ ├── i2w_16579.p │ ├── i2w_16580.p │ ├── i2w_78470.p │ ├── i2w_9999.p │ ├── w2i.p │ ├── w2i_16578.p │ ├── w2i_16579.p │ ├── w2i_16580.p │ ├── w2i_78470.p │ └── w2i_9999.p ├── log ├── __init__.py └── __pycache__ │ └── __init__.cpython-36.pyc ├── main.py ├── model_dumps ├── bilstm-char-only ├── bilstm-word-only └── bilstm-word-plus-char └── spell_checkers ├── ATD.py ├── __pycache__ ├── ATD.cpython-36.pyc └── atd_checker.cpython-36.pyc ├── atd_checker.py ├── hunspell_checker.py └── utils.py /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/README.md -------------------------------------------------------------------------------- /__pycache__/attacks.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/__pycache__/attacks.cpython-36.pyc -------------------------------------------------------------------------------- /__pycache__/biLstm.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/__pycache__/biLstm.cpython-36.pyc -------------------------------------------------------------------------------- /__pycache__/biLstm_char_only.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/__pycache__/biLstm_char_only.cpython-36.pyc -------------------------------------------------------------------------------- /__pycache__/biLstm_with_chars.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/__pycache__/biLstm_with_chars.cpython-36.pyc -------------------------------------------------------------------------------- /attacks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/attacks.py -------------------------------------------------------------------------------- /biLstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/biLstm.py -------------------------------------------------------------------------------- /biLstm_char_only.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/biLstm_char_only.py -------------------------------------------------------------------------------- /biLstm_with_chars.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/biLstm_with_chars.py -------------------------------------------------------------------------------- /data/classes/dev.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/data/classes/dev.txt -------------------------------------------------------------------------------- /data/classes/split.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/data/classes/split.py -------------------------------------------------------------------------------- /data/classes/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/data/classes/test.txt -------------------------------------------------------------------------------- /data/classes/train.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/data/classes/train.txt -------------------------------------------------------------------------------- /defenses/scRNN/__pycache__/corrector.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/__pycache__/corrector.cpython-36.pyc -------------------------------------------------------------------------------- /defenses/scRNN/__pycache__/model.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/__pycache__/model.cpython-36.pyc -------------------------------------------------------------------------------- /defenses/scRNN/__pycache__/utils.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/__pycache__/utils.cpython-36.pyc -------------------------------------------------------------------------------- /defenses/scRNN/corrector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/corrector.py -------------------------------------------------------------------------------- /defenses/scRNN/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/model.py -------------------------------------------------------------------------------- /defenses/scRNN/model_dumps/scrnn_TASK_NAME=MRPC__VOCAB_SIZE=9999_REP_LIST=swap_key_add_drop_REP_PROBS=0.25:0.25:0.25:0.25: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/model_dumps/scrnn_TASK_NAME=MRPC__VOCAB_SIZE=9999_REP_LIST=swap_key_add_drop_REP_PROBS=0.25:0.25:0.25:0.25 -------------------------------------------------------------------------------- /defenses/scRNN/model_dumps/scrnn_TASK_NAME=RTE__VOCAB_SIZE=9999_REP_LIST=swap_key_add_drop_REP_PROBS=0.25:0.25:0.25:0.25: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/model_dumps/scrnn_TASK_NAME=RTE__VOCAB_SIZE=9999_REP_LIST=swap_key_add_drop_REP_PROBS=0.25:0.25:0.25:0.25 -------------------------------------------------------------------------------- /defenses/scRNN/model_dumps/scrnn_VOCAB_SIZE=78470_REP_LIST=swap_add_key_drop_REP_PROBS=0.25:0.25:0.25:0.25: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/model_dumps/scrnn_VOCAB_SIZE=78470_REP_LIST=swap_add_key_drop_REP_PROBS=0.25:0.25:0.25:0.25 -------------------------------------------------------------------------------- /defenses/scRNN/model_dumps/scrnn_VOCAB_SIZE=9999_REP_LIST=swap_key_add_drop_REP_PROBS=0.25:0.25:0.25:0.25: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/model_dumps/scrnn_VOCAB_SIZE=9999_REP_LIST=swap_key_add_drop_REP_PROBS=0.25:0.25:0.25:0.25 -------------------------------------------------------------------------------- /defenses/scRNN/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/train.py -------------------------------------------------------------------------------- /defenses/scRNN/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/utils.py -------------------------------------------------------------------------------- /defenses/scRNN/vocab/CHAR_VOCAB.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/CHAR_VOCAB.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/CHAR_VOCAB_ 16578.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/CHAR_VOCAB_ 16578.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/CHAR_VOCAB_ 16579.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/CHAR_VOCAB_ 16579.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/CHAR_VOCAB_ 16580.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/CHAR_VOCAB_ 16580.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/CHAR_VOCAB_ 78470.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/CHAR_VOCAB_ 78470.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/CHAR_VOCAB_ 9999.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/CHAR_VOCAB_ 9999.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/MRPC_CHAR_VOCAB_ 9999.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/MRPC_CHAR_VOCAB_ 9999.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/MRPC_i2w_9999.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/MRPC_i2w_9999.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/MRPC_w2i_9999.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/MRPC_w2i_9999.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/RTE_CHAR_VOCAB_ 14999.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/RTE_CHAR_VOCAB_ 14999.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/RTE_CHAR_VOCAB_ 9999.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/RTE_CHAR_VOCAB_ 9999.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/RTE_i2w_14999.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/RTE_i2w_14999.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/RTE_i2w_9999.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/RTE_i2w_9999.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/RTE_w2i_14999.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/RTE_w2i_14999.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/RTE_w2i_9999.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/RTE_w2i_9999.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/i2w.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/i2w.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/i2w_16578.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/i2w_16578.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/i2w_16579.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/i2w_16579.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/i2w_16580.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/i2w_16580.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/i2w_78470.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/i2w_78470.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/i2w_9999.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/i2w_9999.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/w2i.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/w2i.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/w2i_16578.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/w2i_16578.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/w2i_16579.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/w2i_16579.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/w2i_16580.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/w2i_16580.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/w2i_78470.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/w2i_78470.p -------------------------------------------------------------------------------- /defenses/scRNN/vocab/w2i_9999.p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/defenses/scRNN/vocab/w2i_9999.p -------------------------------------------------------------------------------- /log/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/log/__init__.py -------------------------------------------------------------------------------- /log/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/log/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/main.py -------------------------------------------------------------------------------- /model_dumps/bilstm-char-only: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/model_dumps/bilstm-char-only -------------------------------------------------------------------------------- /model_dumps/bilstm-word-only: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/model_dumps/bilstm-word-only -------------------------------------------------------------------------------- /model_dumps/bilstm-word-plus-char: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/model_dumps/bilstm-word-plus-char -------------------------------------------------------------------------------- /spell_checkers/ATD.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/spell_checkers/ATD.py -------------------------------------------------------------------------------- /spell_checkers/__pycache__/ATD.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/spell_checkers/__pycache__/ATD.cpython-36.pyc -------------------------------------------------------------------------------- /spell_checkers/__pycache__/atd_checker.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/spell_checkers/__pycache__/atd_checker.cpython-36.pyc -------------------------------------------------------------------------------- /spell_checkers/atd_checker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/spell_checkers/atd_checker.py -------------------------------------------------------------------------------- /spell_checkers/hunspell_checker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/spell_checkers/hunspell_checker.py -------------------------------------------------------------------------------- /spell_checkers/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danishpruthi/Adversarial-Misspellings/HEAD/spell_checkers/utils.py --------------------------------------------------------------------------------