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

136 Commits

Author SHA1 Message Date
sanchit97
b0892ce7fe Remove model wrapping module 2020-11-12 21:17:55 -05:00
sanchit97
f0e27d129c Change model to Huggingface 2020-11-12 14:50:40 -05:00
sanchit97
e04c3777b3 Fix for tut0 2020-11-12 14:49:44 -05:00
Jin Yong Yoo
2328b7f76c Merge branch 'master' into lazy-loading 2020-11-10 19:21:17 -05:00
Yanjun Qi
de0b5b8b8b add in the docstring for textattack_cli main func 2020-11-10 13:32:21 -05:00
Jin Yong Yoo
6273b19c19 make WordSwapGradientBased work with get_grad 2020-11-01 00:58:16 -04:00
Jin Yong Yoo
7dcf27d7bd add lazy loading 2020-10-30 12:17:52 -04:00
Yanjun Qi
c78aa66980 fix all flake8 found whitespacing trailing issues 2020-10-26 08:18:55 -04:00
Yanjun Qi
23d0de6b43 clean up the docstring of each module and module content section 2020-10-25 23:15:07 -04:00
Yanjun Qi
2ea690bbc6 a major shift to rst files generated by sphinx-apidoc
major docstring clean up / plus reorganize the folder structure under docs
2020-10-25 20:21:43 -04:00
k-ivey
c9b1bcabdd Add CoLA based constraint
Added a constraint that uses a model pre-trained on the CoLA dataset to check that the attacked text has a certain number of linguistically acceptable sentences as compared to the reference text
2020-10-16 17:15:03 -04:00
Florian Over
1aa8bac7ba Added a new Constrain MultilingualUniversalSentenceEncoder 2020-10-11 21:13:14 +02:00
Jin Yong Yoo
e496280286 fix missed change 2020-09-30 00:49:46 -04:00
Jin Yong Yoo
88024e1f49 change --dataset-from-datasets to --dataset-from-huggingface 2020-09-30 00:33:08 -04:00
Jin Yong Yoo
428b19a511 change all mentions of nlp to datasets 2020-09-28 22:37:21 -04:00
Hanyu Liu
9fa5874144 Improvements after Review 2020-09-14 10:40:21 -04:00
Hanyu Liu
96c5feac64 Add CheckList Recipe 2020-09-01 10:35:25 -04:00
Jack Morris
af7f31d265 update black formatting 2020-08-30 15:25:56 -04:00
Jin Yong Yoo
f691ede779 fix gpu allocation 2020-08-08 14:32:25 -04:00
Jack Morris
0291a6fbdb | -> ^ 2020-08-06 10:30:30 -04:00
Jack Morris
ae575cfeb5 attack recipes -> classes 2020-08-06 07:42:47 -04:00
Jack Morris
6cd3a2d9a5 parallel fix; add --check-robustness training option 2020-08-04 13:49:20 -04:00
Jin Yong (Jeffrey) Yoo
aacbed4009 Add reseeding for parallel workers 2020-07-30 14:35:08 +09:00
Jack Morris
b589baf985 update test - : -> | 2020-07-29 15:40:03 -04:00
Jack Morris
618e815eea update model training code 2020-07-27 10:40:19 -04:00
Jack Morris
29432d88c8 fix hotflip & model wrappers 2020-07-26 15:56:36 -04:00
Jack Morris
e6d671e918 remove dead imports; model wrappers work 2020-07-26 13:57:27 -04:00
Hanyu-Liu-123
f5e1a731d2 Update Comments 2020-07-24 18:16:53 -04:00
Hanyu Liu
ac95db5611 Final Update (hopefully)
Log to file by using `--log-to-txt` and `---log-to-csv`

If no argument is given, default file name and path is used

Otherwise, file name/path specified by argument

test command changed to accompany new `--log-to-csv` name

use `--csv-style` to switch between fancy to plain
2020-07-24 17:34:00 -04:00
Jack Morris
7255a9ac28 ":" -> "|"; add distilbert-base-uncased-mr 2020-07-24 16:51:48 -04:00
Hanyu-Liu-123
9c8b9b6b8a Full Functions
Supports saving to txt and csv file, given:
   1. Default directory and filename --out-file-txt output.txt
   2. User specifies directory, but not filename e.g. --out-file-txt my_outputs_dir/
   3. User specifies full filepath, e.g. --out-file-txt my_outputs_dir/my_filename.txt
2020-07-21 11:37:13 -04:00
Hanyu-Liu-123
6f4dc29d00 Simplify lines to get timestamp 2020-07-20 12:13:15 -04:00
Hanyu-Liu-123
519a06617e Correct Typos 2020-07-20 12:11:40 -04:00
Hanyu-Liu-123
32ed762a3e Correct Filename Error 2020-07-20 12:09:09 -04:00
Hanyu-Liu-123
8b3b549ce8 Adjustment 3 2020-07-19 22:02:10 -04:00
Hanyu-Liu-123
92797cb643 Adjustment 3 2020-07-19 22:01:13 -04:00
Hanyu-Liu-123
a7fdef9875 Adjustment 1 & 2
Simplified timestamp; deleted "CSV-AttackResult"; Using f-string
2020-07-19 19:43:52 -04:00
Hanyu Liu
055a1f6829 auto format change 2020-07-18 19:04:46 -04:00
Hanyu Liu
36ebda0452 choose your own filename for txt and csv 2020-07-18 19:04:06 -04:00
Hanyu Liu
410c77fea0 Update attack_args_helpers.py 2020-07-18 18:09:14 -04:00
Jack Morris
073b258aa5 Merge pull request #212 from QData/morpheus
add MORPHEUS
2020-07-13 22:15:16 -04:00
Jin Yong Yoo
7382c7a1b5 change for passing flake8 2020-07-13 14:57:53 -04:00
Jin Yong Yoo
50d8ffe507 formatting update 2020-07-13 14:34:17 -04:00
Jin Yong Yoo
22ef1bd459 fix parallerl worker 2020-07-13 14:30:45 -04:00
Jack Morris
39e2a3663a Merge branch 'master' of github.com:QData/TextAttack into morpheus 2020-07-13 01:08:41 -04:00
Jack Morris
9b48469f1a add MORPHEUS recipe 2020-07-13 01:08:38 -04:00
Jack Morris
576876257f merge and format 2020-07-12 20:40:22 -04:00
Jack Morris
3853928a44 remove dead imports 2020-07-12 19:07:41 -04:00
Jack Morris
ba3b412658 fix remaining flake8 things, ignore the rest 2020-07-12 19:03:47 -04:00
Jack Morris
c2fa2c5051 Merge pull request #206 from QData/fast-alz-fix
fix fast-alzantot recipe
2020-07-12 14:37:25 -04:00