@ -1,6 +1,6 @@
export MAIN_ROOT = ` realpath ${ PWD } /../../../`
export MAIN_ROOT = ` realpath ${ PWD } /../../../`
export PATH = ${ MAIN_ROOT } :${ MAIN_ROOT } /tools/sctk/bin:${ PWD} /utils:${ PATH }
export PATH = ${ MAIN_ROOT } :${ MAIN_ROOT } /tools/sctk/bin:${ MAIN_ROOT} /utils:${ PWD} /utils:${ PATH }
export LC_ALL = C
export LC_ALL = C
export PYTHONDONTWRITEBYTECODE = 1
export PYTHONDONTWRITEBYTECODE = 1
@ -13,3 +13,16 @@ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib/
MODEL = u2_kaldi
MODEL = u2_kaldi
export BIN_DIR = ${ MAIN_ROOT } /deepspeech/exps/${ MODEL } /bin
export BIN_DIR = ${ MAIN_ROOT } /deepspeech/exps/${ MODEL } /bin
# srilm
export LIBLBFGS = ${ MAIN_ROOT } /tools/liblbfgs-1.10
export LD_LIBRARY_PATH = ${ LD_LIBRARY_PATH :- } :${ LIBLBFGS } /lib/.libs
export SRILM = ${ MAIN_ROOT } /tools/srilm
export PATH = ${ PATH } :${ SRILM } /bin:${ SRILM } /bin/i686-m64
# Kaldi
export KALDI_ROOT = ${ MAIN_ROOT } /tools/kaldi
[ -f $KALDI_ROOT /tools/env.sh ] && . $KALDI_ROOT /tools/env.sh
export PATH = $PWD /utils/:$KALDI_ROOT /tools/openfst/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, can not using Kaldi! "
[ -f $KALDI_ROOT /tools/config/common_path.sh ] && . $KALDI_ROOT /tools/config/common_path.sh