Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #16 from salesforce/keskarnitish-patch-1
Browse files Browse the repository at this point in the history
Fixing the PTB data set 404 issue
  • Loading branch information
Smerity committed Dec 12, 2017
2 parents 9c62358 + f628e11 commit bf0742c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions getdata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ cd data
echo "- Downloading Penn Treebank (PTB)"
mkdir -p penn
cd penn
wget --quiet --continue https://github.com/pytorch/examples/raw/master/word_language_model/data/penn/train.txt
wget --quiet --continue https://github.com/pytorch/examples/raw/master/word_language_model/data/penn/valid.txt
wget --quiet --continue https://github.com/pytorch/examples/raw/master/word_language_model/data/penn/test.txt
wget --quiet --continue http:https://www.fit.vutbr.cz/~imikolov/rnnlm/simple-examples.tgz
tar -xzf simple-examples.tgz
mv simple-examples/data/ptb.train.txt train.txt
mv simple-examples/data/ptb.test.txt test.txt
mv simple-examples/data/ptb.valid.txt valid.txt
rm -rf simple-examples.tgz
rm -rf simple-examples/
cd ..

echo "- Downloading WikiText-2 (WT2)"
Expand Down

0 comments on commit bf0742c

Please sign in to comment.