Blame view
egs/vystadial_cz/s5/path.sh
829 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 |
# Needed for "correct" sorting export KALDI_ROOT=`pwd`/../../.. [ -f $KALDI_ROOT/tools/env.sh ] && . $KALDI_ROOT/tools/env.sh export PATH=$PWD/utils:$PWD/steps:$KALDI_ROOT/tools/openfst/bin:$KALDI_ROOT/tools/irstlm/bin/:$PWD:$PATH [ ! -f $KALDI_ROOT/tools/config/common_path.sh ] && echo >&2 "The standard file $KALDI_ROOT/tools/config/common_path.sh is not present -> Exit!" && exit 1 . $KALDI_ROOT/tools/config/common_path.sh export LC_ALL=C # adding Kaldi binaries to path srilm_bin=$KALDI_ROOT/tools/srilm/bin/ if [ ! -e "$srilm_bin" ] ; then echo "SRILM is not installed in $KALDI_ROOT/tools." echo "May not be able to create LMs!" echo "Please go to $KALDI_ROOT/tools and run ./extras/install_srilm.sh" fi srilm_sub_bin=`find "$srilm_bin" -type d` for d in $srilm_sub_bin ; do export PATH=$d:$PATH done |