Skip to content

Commit

Permalink
Merge pull request apache#1005 from qiaohaijun/patch-7
Browse files Browse the repository at this point in the history
add a shell to get ptb data
  • Loading branch information
mli committed Dec 21, 2015
2 parents d417d9a + 13e9ff8 commit 6cf2f64
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions example/rnn/get_ptb_data.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/env bash

RNN_DIR=$(cd `dirname $0`; pwd)
DATA_DIR="${RNN_DIR}/data/"

if [[ ! -d "${DATA_DIR}" ]]; then
echo "${DATA_DIR} doesn't exist, will create one";
mkdir -p ${DATA_DIR}
fi

wget -P ${DATA_DIR} https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/ptb/ptb.train.txt;
wget -P ${DATA_DIR} https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/ptb/ptb.valid.txt;
wget -P ${DATA_DIR} https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/ptb/ptb.test.txt;

0 comments on commit 6cf2f64

Please sign in to comment.