From 929c61747ed2fd10c3591a10978e974fca4346b5 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Mon, 5 Jun 2023 15:44:25 +0800 Subject: [PATCH] typo fixes --- egs/must_c/ST/local/compute_fbank_must_c.py | 4 +++- egs/must_c/ST/local/get_words.py | 2 +- egs/must_c/ST/prepare.sh | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/egs/must_c/ST/local/compute_fbank_must_c.py b/egs/must_c/ST/local/compute_fbank_must_c.py index 3af262e32..84de099d1 100755 --- a/egs/must_c/ST/local/compute_fbank_must_c.py +++ b/egs/must_c/ST/local/compute_fbank_must_c.py @@ -64,7 +64,9 @@ def get_args(): "--perturb-speed", type=str2bool, default=False, - help="""Perturb speed with factor 0.9 and 1.1 on train subset.""", + help="""True to enable speed perturb with factors 0.9 and 1.1 on + the train subset. False (by default) to disable speed perturb. + """, ) return parser.parse_args() diff --git a/egs/must_c/ST/local/get_words.py b/egs/must_c/ST/local/get_words.py index 8e9e000a8..a61f60860 100755 --- a/egs/must_c/ST/local/get_words.py +++ b/egs/must_c/ST/local/get_words.py @@ -30,7 +30,7 @@ def main(): for w in words: word_set.add(w) - # Note: reserved* should be keep in sync with ./local/prepare_lang_bpe.py + # Note: reserved* should be kept in sync with ./local/prepare_lang_bpe.py reserved1 = ["", "!SIL", "", ""] reserved2 = ["#0", "", ""] diff --git a/egs/must_c/ST/prepare.sh b/egs/must_c/ST/prepare.sh index 7334c6256..d16bb3d0b 100755 --- a/egs/must_c/ST/prepare.sh +++ b/egs/must_c/ST/prepare.sh @@ -89,14 +89,14 @@ fi if [ $stage -le 2 ] && [ $stop_stage -ge 2 ]; then log "Stage 2: Prepare must-c $version manifest for target language $tgt_lang" mkdir -p data/manifests/$version - if [ ! -e data/manifests/$version/.done ]; then + if [ ! -e data/manifests/$version/.${tgt_lang}.manifests.done ]; then lhotse prepare must-c \ -j $nj \ --tgt-lang $tgt_lang \ $dl_dir/must-c/$version/ \ data/manifests/$version/ - touch data/manifests/$version/.done + touch data/manifests/$version/.${tgt_lang}.manifests.done fi fi