File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
egs/tedlium/s5_r3/local/rnnlm/tuning Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ epochs=20
3030[ -z " $cmd " ] && cmd=$train_cmd
3131
3232text_from_audio=data/train/text
33- text=data/LM/train.txt
3433wordlist=data/lang_chain/words.txt
3534dev_sents=10000
3635text_dir=data/rnnlm/text
4443
4544if [ $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
You can’t perform that action at this time.
0 commit comments