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"