From 6151800d04953c3b46f2df498b075513a34e9099 Mon Sep 17 00:00:00 2001 From: Hui Zhang Date: Thu, 25 Nov 2021 07:44:23 +0000 Subject: [PATCH] fix dataset dir in data.sh --- dataset/voxforge/run_data.sh | 4 ++-- examples/aishell/asr0/local/data.sh | 2 +- examples/aishell/asr1/local/data.sh | 2 +- examples/aishell/asr1/local/tlg.sh | 2 +- examples/librispeech/asr0/local/data.sh | 2 +- examples/librispeech/asr1/local/data.sh | 2 +- examples/librispeech/asr2/local/data.sh | 4 ++-- examples/other/1xt2x/aishell/local/data.sh | 2 +- examples/other/1xt2x/baidu_en8k/local/data.sh | 2 +- examples/other/1xt2x/librispeech/local/data.sh | 2 +- examples/ted_en_zh/st0/local/data.sh | 2 +- examples/ted_en_zh/st1/local/data.sh | 2 +- examples/thchs30/align0/local/data.sh | 2 +- examples/timit/asr1/local/data.sh | 2 +- examples/tiny/asr0/local/data.sh | 2 +- examples/tiny/asr1/local/data.sh | 2 +- examples/wenetspeech/asr1/local/data.sh | 2 +- 17 files changed, 19 insertions(+), 19 deletions(-) diff --git a/dataset/voxforge/run_data.sh b/dataset/voxforge/run_data.sh index 5af9d0cc..26214a82 100644 --- a/dataset/voxforge/run_data.sh +++ b/dataset/voxforge/run_data.sh @@ -1,10 +1,10 @@ #! /usr/bin/env bash -TARGET_DIR=${MAIN_ROOT}/examples/dataset/voxforge +TARGET_DIR=${MAIN_ROOT}/dataset/voxforge mkdir -p ${TARGET_DIR} # download data, generate manifests -python ${MAIN_ROOT}/examples/dataset/voxforge/voxforge.py \ +python ${MAIN_ROOT}/dataset/voxforge/voxforge.py \ --manifest_prefix="${TARGET_DIR}/manifest" \ --target_dir="${TARGET_DIR}" \ --is_merge_dialect=True \ diff --git a/examples/aishell/asr0/local/data.sh b/examples/aishell/asr0/local/data.sh index 1032cedc..ec692eba 100755 --- a/examples/aishell/asr0/local/data.sh +++ b/examples/aishell/asr0/local/data.sh @@ -9,7 +9,7 @@ dict_dir=data/lang_char mkdir -p data mkdir -p ${dict_dir} -TARGET_DIR=${MAIN_ROOT}/examples/dataset +TARGET_DIR=${MAIN_ROOT}/dataset mkdir -p ${TARGET_DIR} if [ ${stage} -le -1 ] && [ ${stop_stage} -ge -1 ]; then diff --git a/examples/aishell/asr1/local/data.sh b/examples/aishell/asr1/local/data.sh index 41843231..3657fd7b 100755 --- a/examples/aishell/asr1/local/data.sh +++ b/examples/aishell/asr1/local/data.sh @@ -8,7 +8,7 @@ dict_dir=data/lang_char mkdir -p data mkdir -p ${dict_dir} -TARGET_DIR=${MAIN_ROOT}/examples/dataset +TARGET_DIR=${MAIN_ROOT}/dataset mkdir -p ${TARGET_DIR} if [ ${stage} -le -1 ] && [ ${stop_stage} -ge -1 ]; then diff --git a/examples/aishell/asr1/local/tlg.sh b/examples/aishell/asr1/local/tlg.sh index f5287f79..7e1665dd 100755 --- a/examples/aishell/asr1/local/tlg.sh +++ b/examples/aishell/asr1/local/tlg.sh @@ -9,7 +9,7 @@ lmtype=srilm source utils/parse_options.sh -data=${MAIN_ROOT}/examples/dataset/${corpus} +data=${MAIN_ROOT}/dataset/${corpus} lexicon=$data/resource_aishell/lexicon.txt text=$data/data_aishell/transcript/aishell_transcript_v0.8.txt diff --git a/examples/librispeech/asr0/local/data.sh b/examples/librispeech/asr0/local/data.sh index fa2c9b2f..b97e8c21 100755 --- a/examples/librispeech/asr0/local/data.sh +++ b/examples/librispeech/asr0/local/data.sh @@ -10,7 +10,7 @@ source ${MAIN_ROOT}/utils/parse_options.sh mkdir -p data mkdir -p ${dict_dir} -TARGET_DIR=${MAIN_ROOT}/examples/dataset +TARGET_DIR=${MAIN_ROOT}/dataset mkdir -p ${TARGET_DIR} if [ ${stage} -le -1 ] && [ ${stop_stage} -ge -1 ]; then diff --git a/examples/librispeech/asr1/local/data.sh b/examples/librispeech/asr1/local/data.sh index a0bf9a2d..3037c366 100755 --- a/examples/librispeech/asr1/local/data.sh +++ b/examples/librispeech/asr1/local/data.sh @@ -19,7 +19,7 @@ source ${MAIN_ROOT}/utils/parse_options.sh mkdir -p data mkdir -p ${dict_dir} -TARGET_DIR=${MAIN_ROOT}/examples/dataset +TARGET_DIR=${MAIN_ROOT}/dataset mkdir -p ${TARGET_DIR} if [ ${stage} -le -1 ] && [ ${stop_stage} -ge -1 ]; then diff --git a/examples/librispeech/asr2/local/data.sh b/examples/librispeech/asr2/local/data.sh index b232f35a..c98c4695 100755 --- a/examples/librispeech/asr2/local/data.sh +++ b/examples/librispeech/asr2/local/data.sh @@ -15,7 +15,7 @@ do_delta=false # Set this to somewhere where you want to put your data, or where # someone else has already put it. You'll want to change this # if you're not on the CLSP grid. -datadir=${MAIN_ROOT}/examples/dataset/ +datadir=${MAIN_ROOT}/dataset/ # bpemode (unigram or bpe) nbpe=5000 @@ -36,7 +36,7 @@ recog_set="test_clean test_other dev_clean dev_other" mkdir -p data -TARGET_DIR=${MAIN_ROOT}/examples/dataset +TARGET_DIR=${MAIN_ROOT}/dataset mkdir -p ${TARGET_DIR} if [ ${stage} -le -1 ] && [ ${stop_stage} -ge -1 ]; then # download data, generate manifests diff --git a/examples/other/1xt2x/aishell/local/data.sh b/examples/other/1xt2x/aishell/local/data.sh index 85574260..a9d5b141 100755 --- a/examples/other/1xt2x/aishell/local/data.sh +++ b/examples/other/1xt2x/aishell/local/data.sh @@ -12,7 +12,7 @@ stop_stage=100 source ${MAIN_ROOT}/utils/parse_options.sh mkdir -p data -TARGET_DIR=${MAIN_ROOT}/examples/dataset +TARGET_DIR=${MAIN_ROOT}/dataset mkdir -p ${TARGET_DIR} bash local/download_model.sh ${ckpt_dir} diff --git a/examples/other/1xt2x/baidu_en8k/local/data.sh b/examples/other/1xt2x/baidu_en8k/local/data.sh index 8e378ff0..9b017324 100755 --- a/examples/other/1xt2x/baidu_en8k/local/data.sh +++ b/examples/other/1xt2x/baidu_en8k/local/data.sh @@ -13,7 +13,7 @@ unit_type=char source ${MAIN_ROOT}/utils/parse_options.sh mkdir -p data -TARGET_DIR=${MAIN_ROOT}/examples/dataset +TARGET_DIR=${MAIN_ROOT}/dataset mkdir -p ${TARGET_DIR} diff --git a/examples/other/1xt2x/librispeech/local/data.sh b/examples/other/1xt2x/librispeech/local/data.sh index 7387472d..43b5426d 100755 --- a/examples/other/1xt2x/librispeech/local/data.sh +++ b/examples/other/1xt2x/librispeech/local/data.sh @@ -14,7 +14,7 @@ unit_type=char source ${MAIN_ROOT}/utils/parse_options.sh mkdir -p data -TARGET_DIR=${MAIN_ROOT}/examples/dataset +TARGET_DIR=${MAIN_ROOT}/dataset mkdir -p ${TARGET_DIR} bash local/download_model.sh ${ckpt_dir} diff --git a/examples/ted_en_zh/st0/local/data.sh b/examples/ted_en_zh/st0/local/data.sh index fb4efbe3..097cd3a8 100755 --- a/examples/ted_en_zh/st0/local/data.sh +++ b/examples/ted_en_zh/st0/local/data.sh @@ -16,7 +16,7 @@ data_dir=./TED-En-Zh . ${MAIN_ROOT}/utils/parse_options.sh || exit -1; -TARGET_DIR=${MAIN_ROOT}/examples/dataset +TARGET_DIR=${MAIN_ROOT}/dataset mkdir -p ${TARGET_DIR} mkdir -p data mkdir -p ${dict_dir} diff --git a/examples/ted_en_zh/st1/local/data.sh b/examples/ted_en_zh/st1/local/data.sh index 2e9d05d1..aa958cfd 100755 --- a/examples/ted_en_zh/st1/local/data.sh +++ b/examples/ted_en_zh/st1/local/data.sh @@ -15,7 +15,7 @@ data_dir=./TED_EnZh source ${MAIN_ROOT}/utils/parse_options.sh -TARGET_DIR=${MAIN_ROOT}/examples/dataset +TARGET_DIR=${MAIN_ROOT}/dataset mkdir -p ${TARGET_DIR} mkdir -p data mkdir -p ${dict_dir} diff --git a/examples/thchs30/align0/local/data.sh b/examples/thchs30/align0/local/data.sh index 8614a041..6d6fc4e8 100644 --- a/examples/thchs30/align0/local/data.sh +++ b/examples/thchs30/align0/local/data.sh @@ -6,7 +6,7 @@ stop_stage=100 source ${MAIN_ROOT}/utils/parse_options.sh mkdir -p data -TARGET_DIR=${MAIN_ROOT}/examples/dataset +TARGET_DIR=${MAIN_ROOT}/dataset mkdir -p ${TARGET_DIR} LEXICON_NAME=$1 diff --git a/examples/timit/asr1/local/data.sh b/examples/timit/asr1/local/data.sh index fb720932..1f631f7f 100755 --- a/examples/timit/asr1/local/data.sh +++ b/examples/timit/asr1/local/data.sh @@ -12,7 +12,7 @@ TIMIT_path= mkdir -p data mkdir -p ${dict_dir} -TARGET_DIR=${MAIN_ROOT}/examples/dataset +TARGET_DIR=${MAIN_ROOT}/dataset mkdir -p ${TARGET_DIR} diff --git a/examples/tiny/asr0/local/data.sh b/examples/tiny/asr0/local/data.sh index 2a544ef8..4251d571 100755 --- a/examples/tiny/asr0/local/data.sh +++ b/examples/tiny/asr0/local/data.sh @@ -10,7 +10,7 @@ dict_dir=data/lang_char mkdir -p data mkdir -p ${dict_dir} -TARGET_DIR=${MAIN_ROOT}/examples/dataset +TARGET_DIR=${MAIN_ROOT}/dataset mkdir -p ${TARGET_DIR} if [ ${stage} -le -1 ] && [ ${stop_stage} -ge -1 ]; then diff --git a/examples/tiny/asr1/local/data.sh b/examples/tiny/asr1/local/data.sh index 1ef9f776..16a029a3 100755 --- a/examples/tiny/asr1/local/data.sh +++ b/examples/tiny/asr1/local/data.sh @@ -14,7 +14,7 @@ bpeprefix="${dict_dir}/bpe_${bpemode}_${nbpe}" mkdir -p data mkdir -p ${dict_dir} -TARGET_DIR=${MAIN_ROOT}/examples/dataset +TARGET_DIR=${MAIN_ROOT}/dataset mkdir -p ${TARGET_DIR} if [ ${stage} -le -1 ] && [ ${stop_stage} -ge -1 ]; then diff --git a/examples/wenetspeech/asr1/local/data.sh b/examples/wenetspeech/asr1/local/data.sh index 67b3d5a5..7dd478d1 100755 --- a/examples/wenetspeech/asr1/local/data.sh +++ b/examples/wenetspeech/asr1/local/data.sh @@ -27,7 +27,7 @@ set -o pipefail mkdir -p data -TARGET_DIR=${MAIN_ROOT}/examples/dataset +TARGET_DIR=${MAIN_ROOT}/dataset mkdir -p ${TARGET_DIR} if [ ${stage} -le -2 ] && [ ${stop_stage} -ge -2 ]; then