Skip to content

Commit

Permalink
Merge pull request #21 from pcyin/small-install-fix
Browse files Browse the repository at this point in the history
Small fix to installation
  • Loading branch information
Pengcheng YIN authored Oct 10, 2019
2 parents b604f19 + 5e8be7c commit 2e4585b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ ENV/
# PyCharm files
.idea/

# VIM stuff
*.swp

# data downloaded automatically using pull_data.sh
data/

Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Here is a list of performance results on six datasets using pretrained models in
git clone https://github.com/pcyin/tranX
cd tranX

./pull_data.sh # get datasets and pre-trained models
bash ./pull_data.sh # get datasets and pre-trained models

conda env create -f config/env/tranx.yml # create conda Python environment.

Expand Down Expand Up @@ -144,6 +144,11 @@ You may take a look at the examples in `asdl/lang/*`.
Please refer to `datasets/<lang>/dataset.py` for code snippets that converts
a dataset into pickled files.

#### How to run without CUDA?

Simply remove the `--cuda`` flag from the command line arguments. It is included
by default in all scripts in the `scripts` directory.

## Reference

TranX is described/used in the following two papers:
Expand Down
2 changes: 1 addition & 1 deletion pull_data.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

echo "download dataset"
data_file="tranx.0.2.0.zip"
data_file="tranx.0.2.1.zip"
wget -c http://www.cs.cmu.edu/~pengchey/${data_file}
unzip ${data_file}
rm ${data_file}
Expand Down

0 comments on commit 2e4585b

Please sign in to comment.