From 71c46cb74cf5d11ca2683d7d1d606c41256ca354 Mon Sep 17 00:00:00 2001 From: qiao hai-jun Date: Mon, 21 Dec 2015 22:27:10 +0800 Subject: [PATCH 1/2] add a shell to get ptb data add a shell to get ptb data --- example/rnn/get_ptb_data.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 example/rnn/get_ptb_data.sh diff --git a/example/rnn/get_ptb_data.sh b/example/rnn/get_ptb_data.sh new file mode 100644 index 000000000000..ea7e1d4e6aaf --- /dev/null +++ b/example/rnn/get_ptb_data.sh @@ -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; From 13e9ff80506eb31c9a0dd55578c18f629437862a Mon Sep 17 00:00:00 2001 From: qiao hai-jun Date: Tue, 22 Dec 2015 00:24:05 +0800 Subject: [PATCH 2/2] add a shell scripts to download ptb dataset --- example/rnn/get_ptb_data.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/rnn/get_ptb_data.sh b/example/rnn/get_ptb_data.sh index ea7e1d4e6aaf..2b517f4ebc4d 100644 --- a/example/rnn/get_ptb_data.sh +++ b/example/rnn/get_ptb_data.sh @@ -10,4 +10,4 @@ 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; +wget -P ${DATA_DIR} https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/ptb/ptb.test.txt;