From d9a91264963c2391221761eab36580edfc7b269c Mon Sep 17 00:00:00 2001 From: huangyuxin Date: Fri, 24 Sep 2021 11:52:32 +0000 Subject: [PATCH] fix the run.sh in g2p/zh --- examples/g2p/zh/run.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/g2p/zh/run.sh b/examples/g2p/zh/run.sh index 25b713110..55c46f85d 100755 --- a/examples/g2p/zh/run.sh +++ b/examples/g2p/zh/run.sh @@ -13,7 +13,13 @@ source ${MAIN_ROOT}/utils/parse_options.sh || exit -1 mkdir -p ${exp_dir} if [ $stage -le -1 ] && [ $stop_stage -ge -1 ];then - test -e ${data}/BZNSYP.rar || { echo "Please download BZNSYP.rar and put it in ${data}; exit -1; } + mkdir -p ${data} + cd ${data} + if [ ! -f BZNSYP.rar ]; then + wget https://paddlespeech.bj.bcebos.com/datasets/BZNSYP.rar + fi + cd - + test -e ${data}/BZNSYP.rar || { echo "Please download BZNSYP.rar and put it in "${data}; exit -1; } fi if [ $stage -le 0 ] && [ $stop_stage -ge 0 ];then