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

1066 Commits

Author SHA1 Message Date
qc
e6f07eb4de add comments 2020-11-06 14:21:08 -05:00
qc
5325ef633e allow * and _ and @ in a word when tokenizing 2020-11-06 14:17:44 -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
Yanjun Qi
230e39b590 solve flake8 warning 2020-10-29 11:17:39 -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
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
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
Yanjun Qi
fc7d5294d9 move documents from semi-automated rst files to correct code positions 2020-10-25 11:53:41 -04:00
Jin Yong Yoo
09d5f1c2e7 fix pso to work with budget query 2020-10-21 16:36:46 -04:00
Jack Morris
5a2f7b3bd5 Merge pull request #298 from QData/new-augmenter
New augmenter
2020-10-18 22:24:06 -04:00
Hanyu Liu
9b2fc8df24 more tests 2020-10-18 02:09:09 -04:00
Hanyu Liu
f3557c4180 updates 2020-10-18 01:45:10 -04:00
k-ivey
5d892ce54c Reformat CoLA threshold logic 2020-10-16 18:01:23 -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
1505015ff5 Added noqa: F401 for unused import 2020-10-11 23:51:08 +02:00
Florian Over
e7a8dec4b5 Fixed formatting 2020-10-11 23:50:32 +02:00
Florian Over
aacd8b675f Imported tensorflow_text so the KeyError: 'SentencepieceOp' will not occur 2020-10-11 23:47:42 +02:00
Florian Over
d5b3e4b7c1 Fixed init file 2020-10-11 23:46:28 +02:00
Florian Over
e257ed8146 Refactored Multilingual Universal Sentence Encoders from a separate folder to the folder of Universal Sentence Encoder 2020-10-11 23:32:06 +02:00
Florian Over
d715a3abcb Removed unused import 2020-10-11 22:43:20 +02:00
Florian Over
c6b9b9c280 Fixed the formatting for the init files 2020-10-11 22:39:31 +02:00
Florian Over
8c777d60dc Added missing import tensorflow_text 2020-10-11 22:15:14 +02:00
Florian Over
97b67b0d21 Fixed the incorrect inits 2020-10-11 22:06:21 +02:00
Florian Over
fcc066b089 Fixed formating 2020-10-11 21:43:07 +02:00
Florian Over
0e0c25e887 Added documentation for multilingual universal sentence encoder 2020-10-11 21:39:57 +02:00
Florian Over
1aa8bac7ba Added a new Constrain MultilingualUniversalSentenceEncoder 2020-10-11 21:13:14 +02:00
Hanyu Liu
8351959c3e clean up 2020-10-09 01:49:01 -04:00
Hanyu Liu
90bfe90e83 better presentation 2020-10-07 02:41:59 -04:00
Hanyu Liu
22f36b594c added helpful interative function 2020-10-07 02:27:03 -04:00
Hanyu Liu
1ca633dc2f First Update 2020-10-07 01:43:01 -04:00
Jin Yong Yoo
a131988988 change flair NER tokenization 2020-10-06 14:08:08 -04:00
Jin Yong Yoo
224d788d3e have flair use textattack tokenization method 2020-10-06 14:08:07 -04:00
Jin Yong Yoo
685a8ac38a Merge pull request #280 from QData/lxylinux
formatted the code
2020-10-02 14:56:50 -04:00
Jin Yong Yoo
8d038e1b6c update documentation and fix attack on empty worklist 2020-10-02 14:07:23 -04:00
k-ivey
f079faa61e Add stanza support for part-of-speech constraint 2020-10-01 20:20:23 -04:00
Jack Morris
47d15acea9 Merge pull request #284 from QData/INV-Augmentation
CheckList-Inv augmentation
2020-09-30 11:30:25 -04: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
Hanyu-Liu-123
3dae361054 Merge pull request #286 from QData/master
Update to Master Branch
2020-09-29 16:54:45 -04:00
Hanyu Liu
43e5418846 comments, minor adjustments 2020-09-28 23:48:36 -04:00
Jin Yong Yoo
428b19a511 change all mentions of nlp to datasets 2020-09-28 22:37:21 -04:00
Hanyu-Liu-123
ee3f476888 Update checklist_ribeiro_2020.py 2020-09-25 11:58:36 -04:00
Hanyu Liu
23c06a5c74 Format 2020-09-25 11:49:57 -04:00
Hanyu-Liu-123
2c67aa6106 Update checklist_ribeiro_2020.py 2020-09-25 11:20:08 -04:00
Hanyu-Liu-123
4d28076efb Update checklist_ribeiro_2020.py 2020-09-25 10:55:29 -04:00