Skip to content

Instantly share code, notes, and snippets.

@slegroux
Created September 4, 2019 19:50
Show Gist options
  • Save slegroux/d433c01faf5b4cce242594361a16fadb to your computer and use it in GitHub Desktop.
Save slegroux/d433c01faf5b4cce242594361a16fadb to your computer and use it in GitHub Desktop.
install kaldi_lm tools
cd kaldi/tools || exit 1;
if [ -d kaldi_lm ]; then
echo Not installing the kaldi_lm toolkit since it is already there.
else
echo Downloading and installing the kaldi_lm tools
if [ ! -f kaldi_lm.tar.gz ]; then
wget http://www.danielpovey.com/files/kaldi/kaldi_lm.tar.gz || exit 1;
fi
tar -xvzf kaldi_lm.tar.gz || exit 1;
cd kaldi_lm
make || exit 1;
echo Done making the kaldi_lm tools
fi
) || exit 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment