path.sh 1.17 KB
Newer Older
1 2 3
# This contains the locations of the tools and data required for running
# the GlobalPhone experiments.

Arnab Ghoshal's avatar
Arnab Ghoshal committed
4 5
export LC_ALL=C  # For expected sorting and joining behaviour

Milos Janda's avatar
Milos Janda committed
6
KALDI_ROOT=/homes/eva/q/qghoshal/src/kaldi/trunk
7 8
[ -f $KALDI_ROOT/tools/env.sh ] && . $KALDI_ROOT/tools/env.sh

9 10 11
KALDISRC=$KALDI_ROOT/src
KALDIBIN=$KALDISRC/bin:$KALDISRC/featbin:$KALDISRC/fgmmbin:$KALDISRC/fstbin  
KALDIBIN=$KALDIBIN:$KALDISRC/gmmbin:$KALDISRC/latbin:$KALDISRC/nnetbin
Minhua Wu's avatar
Minhua Wu committed
12
KALDIBIN=$KALDIBIN:$KALDISRC/sgmmbin:$KALDISRC/lm
13 14 15 16 17 18 19 20 21 22 23 24 25 26

FSTBIN=$KALDI_ROOT/tools/openfst/bin
LMBIN=$KALDI_ROOT/tools/irstlm/bin

[ -d $PWD/local ] || { echo "Error: 'local' subdirectory not found."; }
[ -d $PWD/utils ] || { echo "Error: 'utils' subdirectory not found."; }
[ -d $PWD/steps ] || { echo "Error: 'steps' subdirectory not found."; }

export kaldi_local=$PWD/local
export kaldi_utils=$PWD/utils
export kaldi_steps=$PWD/steps
SCRIPTS=$kaldi_local:$kaldi_utils:$kaldi_steps

export PATH=$PATH:$KALDIBIN:$FSTBIN:$LMBIN:$SCRIPTS
Arnab Ghoshal's avatar
Arnab Ghoshal committed
27 28 29 30 31 32 33 34

# If the correct version of shorten and sox are not on the path, 
# the following will be set by local/gp_check_tools.sh
SHORTEN_BIN=
# e.g. $PWD/tools/shorten-3.6.1/bin
SOX_BIN=
# e.g. $PWD/tools/sox-14.3.2/bin