Jack Morris
f9ead09a82
remove nb warnings
2020-08-01 21:05:29 -04:00
Jack Morris
1c9dc3630d
fix formatting
2020-08-01 09:55:36 -04:00
Jack Morris
b0f473685d
examples for tensorflow and sklearn
2020-07-31 15:35:03 -04:00
Jin Yong (Jeffrey) Yoo
f2eadb894d
Update word_swap_hownet.py
2020-08-01 04:03:44 +09:00
Jin Yong Yoo
3519a3006f
formatting update
2020-07-31 10:20:42 -04:00
Jin Yong Yoo
97b4aa2886
split variable names for IGA and GA
2020-07-31 09:34:57 -04:00
Jin Yong Yoo
4ba7fac789
merge from master
2020-07-31 09:34:25 -04:00
Jin Yong (Jeffrey) Yoo
aacbed4009
Add reseeding for parallel workers
2020-07-30 14:35:08 +09:00
Jack Morris
cb9e16e127
Merge pull request #219 from QData/Updated-CSV&TXT-Logger-Name
...
Updated csv&txt logger naming (default & specific)
2020-07-29 17:31:08 -04:00
Jack Morris
81ceab3352
Merge pull request #230 from QData/hotflip-fix
...
fix hotflip word embedding download
2020-07-29 17:30:49 -04:00
Jack Morris
4e45ec4da3
fix hotflip word embedding download
2020-07-29 15:49:58 -04:00
Jack Morris
b589baf985
update test - : -> |
2020-07-29 15:40:03 -04:00
Jack Morris
ea3911fb4c
Merge pull request #226 from QData/augmentation-interactive
...
Augment Interactively
2020-07-29 15:37:57 -04:00
Jack Morris
fe90ceaf9a
fix imports
2020-07-29 15:10:44 -04:00
Jack Morris
89f1724ed4
f-string
2020-07-29 15:09:48 -04:00
Jack Morris
f578375d6c
Merge branch 'master' of github.com:QData/TextAttack into Updated-CSV&TXT-Logger-Name
2020-07-29 11:30:27 -04:00
Jack Morris
5d5e1b5857
Merge branch 'augmentation-interactive' of github.com:QData/TextAttack into augmentation-interactive
2020-07-29 11:29:13 -04:00
Jack Morris
00573d24fa
Merge branch 'master' of github.com:QData/TextAttack into augmentation-interactive
2020-07-29 11:28:55 -04:00
Jack Morris
e2b89f076f
Merge branch 'master' of github.com:QData/TextAttack into model-docs
2020-07-29 11:28:35 -04:00
Jack Morris
a04a6a847a
pyarrow<1.0 (temporary fix for nlp package)
2020-07-29 10:26:49 -04:00
Jack Morris
d66d374a19
add warning [tests pass]
2020-07-29 10:18:21 -04:00
Jack Morris
d82dd4e127
merge [tests pass]
2020-07-28 15:03:11 -04:00
Jack Morris
024369f5f4
PR updates
2020-07-28 14:49:50 -04:00
Hanyu Liu
c7cfa42bcf
Better Visuals & Commands
...
added spaces, lines, tabs for a clearer interface
more detailed user instructions
when in mode 'c' and asked to change recipe, users can type in 'r' to see all available recipes (do we need this?)
2020-07-27 22:54:47 -04:00
Hanyu Liu
6271fe9edc
Relocate augmenter statement
...
Create augmenter before loops or when "c" is typed by the user; this saves time since creating augmenter in each loop could be expensive
2020-07-27 21:57:05 -04:00
Hanyu Liu
ee05ca0f17
If-else Change
...
Change from "if not -- else" to " if --else" for clearness
Change "if" to "elif"
2020-07-27 21:21:21 -04:00
Hanyu-Liu-123
0560d4f80f
Fix Error
...
make --csv and --input-column optional when running in interactive mode
2020-07-27 13:28:18 -04:00
Jack Morris
46b0830508
fix BERT-attack tokenization bug
2020-07-27 11:48:14 -04:00
Jack Morris
5cce3918bf
automatically remove duplicates returned by transformations
2020-07-27 11:01:37 -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
Jin Yong Yoo
a06f221443
fix pso bug
2020-07-26 08:43:11 -04:00
Jin Yong Yoo
bfd512f63c
fix bugs for genetic algorithm
2020-07-26 03:49:43 -04:00
Jin Yong Yoo
1a92d70457
refactor genetic algorithms to extend from same class
2020-07-25 13:45:45 -04:00
Jin Yong Yoo
9d3c068db4
clear transformation cache
2020-07-25 09:00:39 -04:00
Jin Yong Yoo
5a8d74d288
refactor pso and transformation caching
2020-07-25 08:57:52 -04:00
Hanyu-Liu-123
7aa407496f
Initial Functions
...
Run augmentations interactively just like running attacks
2020-07-24 18:42:18 -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
Jack Morris
589113f82f
remove dead code
2020-07-24 14:16:28 -04:00
Jack Morris
c50a0d8f9d
Merge pull request #221 from QData/greedy-wir-cleanup
...
Clean up greedy-wir
2020-07-22 13:59:30 -04:00
uvafan
5de2efacc1
sort in correct order
2020-07-22 11:55:44 -04:00
Jin Yong Yoo
cdd9061cb4
add cache clearing
2020-07-22 04:42:44 -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
Jin Yong (Jeffrey) Yoo
fb6b0b1511
Update bert_score.py
2020-07-21 21:13:44 +09: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