1
0
mirror of https://github.com/QData/TextAttack.git synced 2021-10-13 00:05:06 +03:00
Commit Graph

391 Commits

Author SHA1 Message Date
Jack Morris
dd848c7ac1 add kuleshov recipe; rename attack_methods --> search_methods 2020-05-06 22:20:46 -04:00
Jack Morris
6ea77cca6d Merge branch 'master' of github.com:QData/TextAttack into kuleshov 2020-05-06 13:33:17 -04:00
Jack Morris
8b06e45e39 remove berttokenizer import 2020-05-06 11:35:47 -04:00
Jack Morris
aed4de198b Merge pull request #87 from QData/logging
Logging updates; add Weights & Biases
2020-05-06 11:28:31 -04:00
Jack Morris
fa5c87b05e rename _ args to - and fix tests 2020-05-06 11:28:18 -04:00
Jack Morris
c8429722ff fix None check in constraint and move composite transformation 2020-05-06 11:22:08 -04:00
Jack Morris
d647133230 add thought vectors 2020-05-06 11:16:17 -04:00
Jack Morris
3602625e0b make word embeddings a shared utility (tests pass) 2020-05-06 10:47:22 -04:00
Jack Morris
6e9dd74654 rename recipes (tests pass) 2020-05-06 10:26:01 -04:00
Jack Morris
394d95c23e PR fixes; consolidate into WordsPerturbed constraint 2020-05-06 10:04:04 -04:00
Jack Morris
3fad44f6c5 add hotflip repr_keys 2020-05-05 15:28:35 -04:00
Jack Morris
b88c75a4ef add column entry to logger 2020-05-05 14:52:41 -04:00
Jack Morris
bd57fa642f add validator and do each step in 1 backwards pass 2020-05-05 14:28:48 -04:00
Jack Morris
1a5ff59190 hotflip works, slowly -- need to reduce # of backwards passes 2020-05-05 13:46:02 -04:00
Jack Morris
0b400f3330 hotflip not registering hook 2020-05-05 12:25:58 -04:00
Jack Morris
b69f2bbda6 working on hotflip 2020-05-05 11:31:42 -04:00
Jack Morris
aaf21a85e6 organize into white-box and black-box transformations. tests pass 2020-05-05 11:21:20 -04:00
Jack Morris
2c91f7ee93 display table in w&b log 2020-05-04 20:42:03 -04:00
Jack Morris
ac797c8840 AttackLogger --> AttackLogManager; add W&B logging 2020-05-04 14:21:05 -04:00
Jack Morris
0b92eaf22a remove build files 2020-05-02 21:01:50 -04:00
Jack Morris
6ce0ab19d6 fix documentation for seq2sick datasets 2020-05-02 20:57:42 -04:00
Jack Morris
cc665f9aaa PR fixes 2020-05-02 20:55:51 -04:00
Jack Morris
5d6c43581c fix imports 2020-05-01 21:52:10 -04:00
Jack Morris
b26ed34224 merge in attack-results-take-goal-functions 2020-05-01 21:40:43 -04:00
Jack Morris
827e1d9345 Merge branch 'master' of github.com:QData/TextAttack into pypi 2020-05-01 21:39:22 -04:00
Jack Morris
160429062b PR fixes 2020-05-01 21:38:50 -04:00
Jack Morris
553795bd89 move scripts/ and add __main__ entry point 2020-05-01 11:26:38 -04:00
Jack Morris
afeb57667c prepare textattack for pypi 2020-05-01 11:02:13 -04:00
Jack Morris
bcfe00f496 add pypi files to gitignore; add better language_tool dependency 2020-05-01 00:14:32 -04:00
Jack Morris
6adbb55b4d finish seq2sick and displaying text2text goal function outputs; put dataset on s3 2020-04-30 19:26:15 -04:00
Jack Morris
57b11e74a0 Entailment needed [CLS] token. Now all tests pass! 2020-04-29 17:59:48 -04:00
Jack Morris
f47734dff7 rename correct_output to ground_truth_output 2020-04-29 16:46:31 -04:00
Jack Morris
4af9050f04 update --parallel and entailment datasets 2020-04-29 15:15:35 -04:00
Jack Morris
e8b021c6a0 merge in goal-function-attack-result changes 2020-04-29 14:49:58 -04:00
Jack Morris
995eb81bed fix attack logger perturbed word % 2020-04-29 13:35:26 -04:00
Jack Morris
898ac4afe4 print clean_text() of failed attack results 2020-04-29 11:58:39 -04:00
Jack Morris
0654e42719 fix entailment tests 2020-04-29 01:26:56 -04:00
Jack Morris
33b4e8f05f Merge branch 'master' of github.com:QData/TextAttack into attack-results-as-goal-functions 2020-04-29 00:28:52 -04:00
Jack Morris
dc01e5dc98 add dwb test 2020-04-28 19:16:26 -04:00
Jack Morris
0403acc479 finish changing to make AttackResult take a pair of GoalFunctionResult objects 2020-04-28 15:47:51 -04:00
Jack Morris
6a9b9c6118 Make AttackResult take two GoalFunctionResults as its arguments 2020-04-28 14:15:20 -04:00
Jack Morris
945c72f829 generate text in batch 2020-04-27 00:09:03 -04:00
Jack Morris
aef87eed94 edit goal function tensor ops 2020-04-26 22:57:10 -04:00
Jack Morris
de043ff927 reorganize datasets and add eng->german translation dataset 2020-04-26 21:32:42 -04:00
Jack Morris
4328995ff3 create NonOverlappingOutput goal function and reorganize things 2020-04-26 20:51:49 -04:00
Jack Morris
8b3bb4a65e create NonOverlappingOutput goal function and reorganize things 2020-04-26 20:51:14 -04:00
Jack Morris
417556ec23 restore SEP and CLS tokens to bert tokenizer; improve validator 2020-04-26 19:12:20 -04:00
Jack Morris
6d225c3345 add tokenizers & models for text2text, init goal function & validators 2020-04-26 18:53:59 -04:00
Jack Morris
5d7259e0d3 Merge pull request #79 from QData/wordnet-transformation
Wordnet transformation
2020-04-25 17:23:40 -04:00
uvafan
e5210e960d fix csv logger 2020-04-24 00:41:54 -04:00