Blame view
tools/extras/install_kaldi_lm.sh
682 Bytes
8dcb6dfcb first commit |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
#!/bin/bash # The script downloads and installs kaldi_lm set -e # Make sure we are in the tools/ directory. if [ `basename $PWD` == extras ]; then cd .. fi ! [ `basename $PWD` == tools ] && \ echo "You must call this script from the tools/ directory" && exit 1; echo "Installing kaldi_lm" if [ ! -d "kaldi_lm" ]; then wget http://www.danielpovey.com/files/kaldi/kaldi_lm.tar.gz || exit 1; tar -xvzf kaldi_lm.tar.gz || exit 1; fi cd kaldi_lm make || exit 1; cd .. ( set +u wd=`pwd` echo "export PATH=\$PATH:$wd/kaldi_lm" ) >> env.sh echo >&2 "Installation of kaldi_lm finished successfully" echo >&2 "Please source tools/env.sh in your path.sh to enable it" |