Blame view

egs/tedlium/s5_r3/local/ted_download_rnnlm.sh 756 Bytes
8dcb6dfcb   Yannick Estève   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  #!/bin/bash
  #
  # Copyright  2018  François Hernandez
  # Apache 2.0
  #
  # This script downloads pre-built RNN language models trained on the TED-LIUM
  # text data and acoustic training data.  If you want to build these
  # models yourself, run the script local/ted_train_rnnlm.sh.
  
  set -e
  
  echo "$0: downloading Tedlium RNNLM models (it won't re-download if it was already downloaded.)"
  wget --continue http://kaldi-asr.org/models/5/tedlium_rnnlm.tgz -P exp/rnnlm_lstm_tdnn_a_averaged || exit 1
  cd exp/rnnlm_lstm_tdnn_a_averaged
  tar -xvzf tedlium_rnnlm.tgz || exit 1
  rm tedlium_rnnlm.tgz
  mkdir -p config
  cd ../..
  cp data/lang/words.txt exp/rnnlm_lstm_tdnn_a_averaged/config/words.txt
  echo "<brk> 152217" >> exp/rnnlm_lstm_tdnn_a_averaged/config/words.txt
  
  exit 0