From 2d6feb2100f67c1b04d712d092e00786ce0a503c Mon Sep 17 00:00:00 2001 From: Graham Neubig Date: Wed, 9 Oct 2019 16:59:45 -0400 Subject: [PATCH 1/2] Small fix to installation --- .gitignore | 3 +++ README.md | 2 +- pull_data.sh | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d21eed0..680d34c 100644 --- a/.gitignore +++ b/.gitignore @@ -101,6 +101,9 @@ ENV/ # PyCharm files .idea/ +# VIM stuff +*.swp + # data downloaded automatically using pull_data.sh data/ diff --git a/README.md b/README.md index c6d50c9..e02ef13 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/pull_data.sh b/pull_data.sh index 346e5a9..abfb10c 100644 --- a/pull_data.sh +++ b/pull_data.sh @@ -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} From 5e8be7cf8b92fde3ac904f884fe4d329096a745b Mon Sep 17 00:00:00 2001 From: Graham Neubig Date: Wed, 9 Oct 2019 17:51:53 -0400 Subject: [PATCH 2/2] Updated README to note CUDA can be skipped --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index e02ef13..52ec154 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,11 @@ You may take a look at the examples in `asdl/lang/*`. Please refer to `datasets//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: