Skip to content

Commit

Permalink
Fix aishell rnnlm training command (#1015)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkufool authored Apr 20, 2023
1 parent 81d386e commit 5c65516
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions egs/aishell/ASR/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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

0 comments on commit 5c65516

Please sign in to comment.