Skip to content

Commit

Permalink
Merge pull request #490 from QData/scipy-version-plus-two-doc-updates
Browse files Browse the repository at this point in the history
scipy version plus minor documentation updates
  • Loading branch information
qiyanjun committed Jul 25, 2021
2 parents 776dfec + 92e085d commit 1ff364a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
8 changes: 8 additions & 0 deletions docs/1start/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:*
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ff364a

Please sign in to comment.