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

add tensorflow as req

This commit is contained in:
uvafan
2019-10-29 18:54:02 -04:00
parent 4be73495b1
commit 93935783b7
3 changed files with 18 additions and 6 deletions

View File

@@ -2,6 +2,6 @@ nltk
numpy<1.17
torch==1.3.0
transformers==2.0.0
tensorflow-gpu
# visdom

View File

@@ -19,6 +19,12 @@ Description: # TextAttack
pip install -r requirements.txt
```
We use the list of stopwords from nltk. To download them run in Python shell:
```
import nltk
nltk.download('stopwords')
```
## Features

View File

@@ -9,12 +9,18 @@ textattack.egg-info/dependency_links.txt
textattack.egg-info/top_level.txt
textattack/attacks/__init__.py
textattack/attacks/attack.py
textattack/attacks/genetic_alg.py
textattack/attacks/genetic_algorithm.py
textattack/attacks/greedy_word_swap.py
textattack/attacks/greedy_word_swap_wir.py
textattack/constraints/__init__.py
textattack/constraints/constraint.py
textattack/constraints/semantics/__init__.py
textattack/constraints/semantics/universal_sentence_encoder.py
textattack/constraints/semantics/google_language_model/__init__.py
textattack/constraints/semantics/google_language_model/alzantot_goog_lm.py
textattack/constraints/semantics/google_language_model/google_language_model.py
textattack/constraints/semantics/google_language_model/lm_data_utils.py
textattack/constraints/semantics/google_language_model/lm_utils.py
textattack/constraints/syntax/__init__.py
textattack/constraints/syntax/language_tool.py
textattack/datasets/__init__.py
@@ -24,7 +30,7 @@ textattack/models/__init__.py
textattack/models/bert_for_sentiment_classification.py
textattack/models/infer_sent.py
textattack/models/lstm_for_sentiment_classification.py
textattack/perturbations/__init__.py
textattack/perturbations/perturbation.py
textattack/perturbations/word_swap.py
textattack/perturbations/word_swap_counterfit.py
textattack/transformations/__init__.py
textattack/transformations/transformation.py
textattack/transformations/word_swap.py
textattack/transformations/word_swap_counterfit.py