Skip to content

Commit 403c5ee

Browse files
francoishernandezdanpovey
authored andcommitted
[egs] Fix path in Tedlium r3 rnnlm training script (kaldi-asr#3039)
1 parent 2f92bd9 commit 403c5ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

egs/tedlium/s5_r3/local/rnnlm/tuning/run_lstm_tdnn_a.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ epochs=20
3030
[ -z "$cmd" ] && cmd=$train_cmd
3131

3232
text_from_audio=data/train/text
33-
text=data/LM/train.txt
3433
wordlist=data/lang_chain/words.txt
3534
dev_sents=10000
3635
text_dir=data/rnnlm/text
@@ -44,8 +43,9 @@ done
4443

4544
if [ $stage -le 0 ]; then
4645
mkdir -p $text_dir
46+
gunzip -c db/TEDLIUM_release-3/LM/*.en.gz | sed 's/ <\/s>//g' > $text_dir/train.txt
4747
# shuffle text from audio and lm
48-
cat $text_from_audio | cut -d ' ' -f2- | cat $text |\
48+
cat $text_from_audio | cut -d ' ' -f2- | cat $text_dir/train.txt |\
4949
shuf > data/rnnlm/full_lm_data.shuffled
5050
# create dev and train sets based on audio and LM data
5151
cat data/rnnlm/full_lm_data.shuffled | head -n $dev_sents> $text_dir/dev.txt

0 commit comments

Comments
 (0)