Jin Yong Yoo
07abaf5b1b
Merge pull request #319 from dheerajrav/word_swap_change_fix
...
Transformation Fix: WordSwapNameChange
2020-11-06 09:19:57 -05:00
Dheeraj Ravindranath
a0e94792f5
WordSwapChangeName transformation now accounts
...
for sentences with S-PER tags. (Sentences with firstname, or lastname
only)
2020-11-05 23:36:35 -07:00
Jin Yong Yoo
8dad54a145
fix test outputs and bugs
2020-11-01 16:16:55 -05:00
Jin Yong Yoo
866301ba08
fix bugs and revise word to token matching scheme
2020-11-01 14:02:00 -05:00
Jin Yong Yoo
84c1681f34
update gradient test to be device invariant
2020-11-01 00:58:17 -04:00
Jin Yong Yoo
dcf408be95
fix wrong test output
2020-11-01 00:58:17 -04:00
Jin Yong Yoo
4893d47e6c
add consistent is_black_box attributes
2020-11-01 00:58:17 -04:00
Jin Yong Yoo
79f3f4f8f0
add new test for gradient-based greedy-word-wir
2020-11-01 00:58:17 -04:00
Jin Yong Yoo
bdbeae80d2
add gradient-based white-box search
2020-11-01 00:58:16 -04:00
Jin Yong Yoo
6273b19c19
make WordSwapGradientBased work with get_grad
2020-11-01 00:58:16 -04:00
Jin Yong Yoo
3ffd776b63
add get_grad method
2020-11-01 00:58:16 -04:00
Jin Yong Yoo
21496460fe
add embedding layer retrieval to models
2020-11-01 00:58:15 -04:00
Jin Yong Yoo
e2dd75001c
add install of stanza resource when package is present
2020-10-31 00:49:53 -04:00
Jin Yong Yoo
4f16bb097b
fix tqdm version conflict with datasets
2020-10-30 22:26:20 -04:00
Jin Yong Yoo
3c65e9d0a1
remove 3.9 from testing
2020-10-30 22:16:25 -04:00
Jin Yong Yoo
46ef3bcac5
fix github flow and import issues
2020-10-30 21:54:04 -04:00
Jin Yong Yoo
dcce7b3434
undo edits
2020-10-30 17:34:54 -04:00
Jin Yong Yoo
7a89aba559
make some dependencies optional
2020-10-30 17:31:00 -04:00
Jin Yong Yoo
e6786b6bd7
revert changes and fix circular imports
2020-10-30 16:58:39 -04:00
Jin Yong Yoo
3458a2b6c2
rebase and formatting
2020-10-30 13:02:55 -04:00
Jin Yong Yoo
4478ad910b
remove unncessary future statements
2020-10-30 12:17:53 -04:00
Jin Yong Yoo
8d64e89a1f
formatting
2020-10-30 12:17:53 -04:00
Jin Yong Yoo
7dcf27d7bd
add lazy loading
2020-10-30 12:17:52 -04:00
Yanjun Qi / Jane
41e747215b
Merge pull request #322 from QData/new_docs
...
a comprehensive clean up of all URLs by using the :ref: / Plus Remove the old API docs
2020-10-29 14:01:34 -04:00
Hanyu-Liu-123
af029bff8b
Specify torch version
...
Specify torch version to avoid flair issue:
https://github.com/flairNLP/flair/issues/1924
2020-10-29 13:27:58 -04:00
Hanyu-Liu-123
58f522b30c
Update test_misc.py
2020-10-29 13:25:47 -04:00
Hanyu-Liu-123
2509a14331
Fix Format Error
2020-10-29 12:47:54 -04:00
Hanyu-Liu-123
f79463903e
Temporary Fix of Flair Testing Error
2020-10-29 12:39:47 -04:00
Yanjun Qi
230e39b590
solve flake8 warning
2020-10-29 11:17:39 -04:00
Yanjun Qi
6d83b2c9cb
isort format of attack_camembert
2020-10-29 11:08:47 -04:00
Yanjun Qi
96a0360567
remove the old API docs
...
I have updated (almost) all code files' head docstring by adding text from the old API rst files. So we really don't need those files under 3import.
The only exception is for the attack recipe . So I keep that as a single item in the sidebar
Besides, I just did a comprehensive clean up of all URLs by using the :ref:
2020-10-29 11:05:01 -04:00
Yanjun Qi / Jane
4c69e8656a
Merge pull request #317 from dheerajrav/patch-1
...
Installation link fix
2020-10-26 21:16:15 -04:00
Dheeraj Ravindranath
77ff8f35e2
Installation link fix
...
The previous link https://github.com/QData/TextAttack/blob/master/docs/quickstart/installation.rst doesn't work anymore.
2020-10-26 15:43:32 -06:00
Yanjun Qi / Jane
36dfce6bda
Merge pull request #316 from QData/new_doc
...
a major shift to rst files generated by sphinx-apidoc
2020-10-26 13:49:47 -04:00
Yanjun Qi
887dca1307
Update minimize_bleu.py
...
with black
2020-10-26 13:14:51 -04:00
Yanjun Qi
b998e0f654
correct docstring style erors
2020-10-26 13:04:42 -04:00
Yanjun Qi
69a415f80b
correct two formatting with black
2020-10-26 08:35:13 -04:00
Yanjun Qi
a4bd404d12
remove submodule lines from autodoc rsts
2020-10-26 08:29:59 -04:00
Yanjun Qi
c78aa66980
fix all flake8 found whitespacing trailing issues
2020-10-26 08:18:55 -04:00
Yanjun Qi
c41a13e6cd
Update textattack.rst
2020-10-25 23:16:43 -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 / Jane
95603fb73c
Merge branch 'master' into new_doc
2020-10-25 20:26:52 -04:00
Yanjun Qi
00c80ee514
Update transformation.rst
2020-10-25 20:22:21 -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
a-major-change-to-rely-on-Sphinx-apidoc
2020-10-25 20:21:43 -04:00
Yanjun Qi
fc7d5294d9
move documents from semi-automated rst files to correct code positions
2020-10-25 11:53:41 -04:00
Yanjun Qi
821c350c37
move the mergign of api and source two version docs to branch new_doc
2020-10-24 23:05:53 -04:00
Yanjun Qi
1e36c63c61
add in "sphinx.ext.autosummary"
2020-10-24 22:52:49 -04:00
Yanjun Qi
688d997694
Update conf.py
2020-10-24 22:17:10 -04:00
Yanjun Qi / Jane
d326796c60
Merge pull request #315 from QData/new_doc
...
add sphinx autodoc generated rest
2020-10-24 13:47:20 -04:00
Yanjun Qi
e91a652715
Two versions of API references now
...
(one manually selected, one autodoc-generated)
2020-10-24 12:37:39 -04:00