From 5c65516e05a52eb0b9973bff6fe9fab84c0720b4 Mon Sep 17 00:00:00 2001 From: Wei Kang Date: Thu, 20 Apr 2023 16:14:16 +0800 Subject: [PATCH] Fix aishell rnnlm training command (#1015) --- egs/aishell/ASR/prepare.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/egs/aishell/ASR/prepare.sh b/egs/aishell/ASR/prepare.sh index bd34c1f44f..80672b9e3b 100755 --- a/egs/aishell/ASR/prepare.sh +++ b/egs/aishell/ASR/prepare.sh @@ -230,7 +230,7 @@ if [ $stage -le 9 ] && [ $stop_stage -ge 9 ]; then if [ ! -f $dl_dir/lm/aishell-train-word.txt ]; then cp $lang_phone_dir/transcript_words.txt $dl_dir/lm/aishell-train-word.txt fi - + # training words ./local/prepare_char_lm_training_data.py \ --lang-char data/lang_char \ @@ -278,7 +278,7 @@ if [ $stage -le 10 ] && [ $stop_stage -ge 10 ]; then out_dir=data/lm_training_char mkdir -p $out_dir ln -snf ../../../librispeech/ASR/local/sort_lm_training_data.py local/ - + ./local/sort_lm_training_data.py \ --in-lm-data $out_dir/lm_data.pt \ --out-lm-data $out_dir/sorted_lm_data.pt \ @@ -306,9 +306,9 @@ if [ $stage -le 11 ] && [ $stop_stage -ge 11 ]; then --hidden-dim 512 \ --num-layers 2 \ --batch-size 400 \ - --exp-dir rnnlm_char/exp_aishell1_small \ - --lm-data data/lm_char/sorted_lm_data_aishell1.pt \ - --lm-data-valid data/lm_char/sorted_lm_data_valid.pt \ + --exp-dir rnnlm_char/exp \ + --lm-data $out_dir/sorted_lm_data.pt \ + --lm-data-valid $out_dir/sorted_lm_data_valid.pt \ --vocab-size 4336 \ --master-port 12345 fi