mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
scipy-doc
This commit is contained in:
@@ -397,7 +397,11 @@ textattack train --model bert-base-uncased --dataset glue^cola --batch-size 32 -
|
||||
|
||||
### To check datasets: `textattack peek-dataset`
|
||||
|
||||
To take a closer look at a dataset, use `textattack peek-dataset`. TextAttack will print some cursory statistics about the inputs and outputs from the dataset. For example, `textattack peek-dataset --dataset-from-huggingface snli` will show information about the SNLI dataset from the NLP package.
|
||||
To take a closer look at a dataset, use `textattack peek-dataset`. TextAttack will print some cursory statistics about the inputs and outputs from the dataset. For example,
|
||||
```bash
|
||||
textattack peek-dataset --dataset-from-huggingface snli
|
||||
```
|
||||
will show information about the SNLI dataset from the NLP package.
|
||||
|
||||
|
||||
### To list functional components: `textattack list`
|
||||
|
||||
@@ -42,6 +42,14 @@ conda activate textattackenv
|
||||
conda env list
|
||||
```
|
||||
|
||||
If you want to use the most-up-to-date version of textattack (normally with newer bug fixes), you can run the following:
|
||||
```bash
|
||||
git clone https://github.com/QData/TextAttack.git
|
||||
cd TextAttack
|
||||
pip install .[dev]
|
||||
```
|
||||
|
||||
|
||||
### 1. How to Train
|
||||
|
||||
For example, you can *Train our default LSTM for 50 epochs on the Yelp Polarity dataset:*
|
||||
|
||||
@@ -9,7 +9,7 @@ datasets
|
||||
nltk
|
||||
numpy<1.19.0 #TF 2.0 requires this
|
||||
pandas>=1.0.1
|
||||
scipy==1.4.1
|
||||
scipy>=1.4.1
|
||||
torch>=1.7.0,!=1.8
|
||||
transformers>=3.3.0
|
||||
terminaltables
|
||||
|
||||
Reference in New Issue
Block a user