-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpath.sh
executable file
·36 lines (31 loc) · 1.15 KB
/
path.sh
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
35
36
# This script add paths for kaldi tools
# 2016-04-18
# modified by JK
# modified by HW
#---------------------------------------------#
# change your directory in line 9 and line 37 #
#---------------------------------------------#
root=$1
#valgrind=yes
valgrind=no
# If you run with valgrind, by setting valgrind=yes above,
# the errors can be seen with the following command:
# ( grep 'ERROR SUMMARY' exp/*/*.log | grep -v '0 errors' ; grep 'definitely lost' exp/*/*.log | grep -v -w 0 )
if [ $valgrind == "no" ]; then
export PATH=${root}/src/bin:${root}/tools/openfst/bin:${root}/src/fstbin/:${root}/src/gmmbin/:${root}/src/featbin/:${root}/src/fgmmbin:${root}/src/sgmmbin:${root}/src/lm:${root}/src/latbin:$PATH
else
mkdir bin
for x in ${root}/src/{bin,fstbin,gmmbin,featbin,fgmmbin,sgmmbin,lm,latbin}; do
for y in $x/*; do
if [ -x $y ]; then
b=`basename $y`
echo valgrind $y '"$@"' > bin/$b
chmod +x bin/`basename $b`
fi
done
done
export PATH=`pwd`/bin/:${root}/tools/openfst/bin:$PATH
fi
LC_ALL=ko_KR.UTF-8
LC_LOCALE_ALL=ko_KR.UTF-8
export PATH=$PATH:$PWD/utils:$PWD/steps:$root/src/nnet2bin:$root/src/sgmm2bin