From 68980c5d0abf41286a59e3596321c57691deab4a Mon Sep 17 00:00:00 2001 From: zr_jin Date: Fri, 17 May 2024 19:45:15 +0800 Subject: [PATCH] Fix an error occured during mmi preparation (#1626) * init commit * updated --- egs/librispeech/ASR/prepare_lm.sh | 2 ++ egs/librispeech/ASR/prepare_mmi.sh | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/egs/librispeech/ASR/prepare_lm.sh b/egs/librispeech/ASR/prepare_lm.sh index a8eb5ca784..1792395d8d 100755 --- a/egs/librispeech/ASR/prepare_lm.sh +++ b/egs/librispeech/ASR/prepare_lm.sh @@ -31,6 +31,8 @@ log "Running prepare_lm.sh" stage=0 stop_stage=100 +. shared/parse_options.sh || exit 1 + if [ $stage -le 0 ] && [ $stop_stage -ge 0 ]; then log "Stage 0: Prepare BPE based lexicon." diff --git a/egs/librispeech/ASR/prepare_mmi.sh b/egs/librispeech/ASR/prepare_mmi.sh index d8a6e0caf5..f877cac225 100755 --- a/egs/librispeech/ASR/prepare_mmi.sh +++ b/egs/librispeech/ASR/prepare_mmi.sh @@ -8,11 +8,15 @@ set -eou pipefail . prepare.sh --stage -1 --stop-stage 6 || exit 1 +. prepare_lm.sh --stage 0 --stop-stage 0 || exit 1 + log "Running prepare_mmi.sh" stage=0 stop_stage=100 +. shared/parse_options.sh || exit 1 + if [ $stage -le 0 ] && [ $stop_stage -ge 0 ]; then log "Stage 0: Prepare bigram token-level P for MMI training"