зеркало из https://github.com/mozilla/kaldi.git
Merge branch 'master' into cpplint_style
This commit is contained in:
Коммит
a2c261af1b
|
@ -1,10 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
export KALDI_ROOT=`pwd`/../../..
|
||||
. $KALDI_ROOT/tools/config/common_path.sh
|
||||
|
||||
[ -f $KALDI_ROOT/tools/env.sh ] && . $KALDI_ROOT/tools/env.sh
|
||||
export PATH=$PWD/utils/:$KALDI_ROOT/tools/openfst/bin:$PWD:$PATH
|
||||
|
||||
. $KALDI_ROOT/tools/env.sh
|
||||
[ ! -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
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ done
|
|||
sdata=$data/split$nj;
|
||||
cmvn_opts=`cat $srcdir/cmvn_opts` || exit 1;
|
||||
thread_string=
|
||||
[ $num_threads -gt 1 ] && thread_string="-parallel --num-threads=$num_threads"
|
||||
[ $num_threads -gt 1 ] && thread_string="-parallel --num-threads=$num_threads"
|
||||
|
||||
mkdir -p $dir/log
|
||||
[[ -d $sdata && $data/feats.scp -ot $sdata ]] || split_data.sh $data $nj || exit 1;
|
||||
|
@ -99,7 +99,7 @@ if [ ! -z "$transform_dir" ]; then
|
|||
[ ! -s $transform_dir/num_jobs ] && \
|
||||
echo "$0: expected $transform_dir/num_jobs to contain the number of jobs." && exit 1;
|
||||
nj_orig=$(cat $transform_dir/num_jobs)
|
||||
|
||||
|
||||
if [ $feat_type == "raw" ]; then trans=raw_trans;
|
||||
else trans=trans; fi
|
||||
if [ $feat_type == "lda" ] && \
|
||||
|
@ -142,7 +142,7 @@ if [ $stage -le 1 ]; then
|
|||
$graphdir/HCLG.fst "$feats" "ark:|gzip -c > $dir/lat.JOB.gz" || exit 1;
|
||||
fi
|
||||
|
||||
# The output of this script is the files "lat.*.gz"-- we'll rescore this at
|
||||
# The output of this script is the files "lat.*.gz"-- we'll rescore this at
|
||||
# different acoustic scales to get the final output.
|
||||
|
||||
|
||||
|
@ -151,7 +151,8 @@ if [ $stage -le 2 ]; then
|
|||
[ ! -x local/score.sh ] && \
|
||||
echo "Not scoring because local/score.sh does not exist or not executable." && exit 1;
|
||||
echo "score best paths"
|
||||
local/score.sh --iter $iter $scoring_opts --cmd "$cmd" $data $graphdir $dir
|
||||
[ "$iter" != "final" ] && iter_opt="--iter $iter"
|
||||
local/score.sh $iter_opt $scoring_opts --cmd "$cmd" $data $graphdir $dir
|
||||
echo "score confidence and timing with sclite"
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -170,7 +170,8 @@ if [ $stage -le 2 ]; then
|
|||
[ ! -x local/score.sh ] && \
|
||||
echo "Not scoring because local/score.sh does not exist or not executable." && exit 1;
|
||||
echo "score best paths"
|
||||
local/score.sh --iter $iter $scoring_opts --cmd "$cmd" $data $graphdir $dir
|
||||
[ "$iter" != "final" ] && iter_opt="--iter $iter"
|
||||
local/score.sh $iter_opt $scoring_opts --cmd "$cmd" $data $graphdir $dir
|
||||
echo "score confidence and timing with sclite"
|
||||
fi
|
||||
fi
|
||||
|
|
Загрузка…
Ссылка в новой задаче