From fbc88948044278b687a57309248eb2ae6df0a415 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Wed, 14 Dec 2022 13:47:23 +0800 Subject: [PATCH] Add comment for compile_hlg_using_openfst.py (#762) --- egs/librispeech/ASR/prepare.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/egs/librispeech/ASR/prepare.sh b/egs/librispeech/ASR/prepare.sh index 11c8e1066..59bed8389 100755 --- a/egs/librispeech/ASR/prepare.sh +++ b/egs/librispeech/ASR/prepare.sh @@ -302,13 +302,20 @@ fi if [ $stage -le 9 ] && [ $stop_stage -ge 9 ]; then log "Stage 9: Compile HLG" ./local/compile_hlg.py --lang-dir data/lang_phone - ./local/compile_hlg_using_openfst.py --lang-dir data/lang_phone + + # Note If ./local/compile_hlg.py throws OOM, + # please switch to the following command + # + # ./local/compile_hlg_using_openfst.py --lang-dir data/lang_phone for vocab_size in ${vocab_sizes[@]}; do lang_dir=data/lang_bpe_${vocab_size} ./local/compile_hlg.py --lang-dir $lang_dir - ./local/compile_hlg_using_openfst.py --lang-dir $lang_dir + # Note If ./local/compile_hlg.py throws OOM, + # please switch to the following command + # + # ./local/compile_hlg_using_openfst.py --lang-dir $lang_dir done fi