зеркало из https://github.com/mozilla/kaldi.git
trunk: Various script fixes (mostly of minor effect or relating to unused capabilities), found by looking for variables used only once.
git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@3209 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
This commit is contained in:
Родитель
80205a1357
Коммит
6562e3fbe9
|
@ -117,7 +117,7 @@ if [ $sub_split -eq 1 ]; then
|
|||
$dir/dengraph/HCLG.fst "$feats" "ark:|gzip -c >$dir/lat.JOB.gz" || exit 1;
|
||||
else
|
||||
for n in `seq $nj`; do
|
||||
if [ -f $dir/.done.$n ] && [ $dir/.done.$n -nt $alidir/final.mdl ]; then
|
||||
if [ -f $dir/.done.$n ] && [ $dir/.done.$n -nt $srcdir/final.mdl ]; then
|
||||
echo "Not processing subset $n as already done (delete $dir/.done.$n if not)";
|
||||
else
|
||||
sdata2=$data/split$nj/$n/split$sub_split;
|
||||
|
|
|
@ -125,7 +125,7 @@ if [ $sub_split -eq 1 ]; then
|
|||
$dir/dengraph/HCLG.fst "$feats" "scp:$dir/lat.store_separately_as_gz.scp" || exit 1;
|
||||
else
|
||||
for n in `seq $nj`; do
|
||||
if [ -f $dir/.done.$n ] && [ $dir/.done.$n -nt $alidir/final.mdl ]; then
|
||||
if [ -f $dir/.done.$n ] && [ $dir/.done.$n -nt $srcdir/final.mdl ]; then
|
||||
echo "Not processing subset $n as already done (delete $dir/.done.$n if not)";
|
||||
else
|
||||
sdata2=$data/split$nj/$n/split$sub_split;
|
||||
|
|
|
@ -116,7 +116,7 @@ if [ $sub_split -eq 1 ]; then
|
|||
$dir/dengraph/HCLG.fst ark:- "ark:|gzip -c >$dir/lat.JOB.gz" || exit 1;
|
||||
else
|
||||
for n in `seq $nj`; do
|
||||
if [ -f $dir/.done.$n ] && [ $dir/.done.$n -nt $alidir/final.mdl ]; then
|
||||
if [ -f $dir/.done.$n ] && [ $dir/.done.$n -nt $srcdir/final.mdl ]; then
|
||||
echo "Not processing subset $n as already done (delete $dir/.done.$n if not)";
|
||||
else
|
||||
sdata2=$data/split$nj/$n/split$sub_split;
|
||||
|
|
|
@ -42,7 +42,7 @@ feadir=$5
|
|||
|
||||
sdata=$srcdata/split$nj;
|
||||
splice_opts=`cat $gmmdir/splice_opts 2>/dev/null` # frame-splicing options.
|
||||
norm_vars=`cat $srcdir/norm_vars 2>/dev/null` || norm_vars=false # cmn/cmvn option, default false.
|
||||
norm_vars=`cat $gmmdir/norm_vars 2>/dev/null` || norm_vars=false # cmn/cmvn option, default false.
|
||||
|
||||
mkdir -p $data $logdir $feadir
|
||||
[[ -d $sdata && $srcdata/feats.scp -ot $sdata ]] || split_data.sh $srcdata $nj || exit 1;
|
||||
|
|
|
@ -45,7 +45,7 @@ feadir=$5
|
|||
|
||||
sdata=$srcdata/split$nj;
|
||||
splice_opts=`cat $gmmdir/splice_opts 2>/dev/null`
|
||||
norm_vars=`cat $srcdir/norm_vars 2>/dev/null` || norm_vars=false # cmn/cmvn option, default false.
|
||||
norm_vars=`cat $gmmdir/norm_vars 2>/dev/null` || norm_vars=false # cmn/cmvn option, default false.
|
||||
|
||||
mkdir -p $data $logdir $feadir
|
||||
[[ -d $sdata && $srcdata/feats.scp -ot $sdata ]] || split_data.sh $srcdata $nj || exit 1;
|
||||
|
|
|
@ -49,7 +49,7 @@ numgauss=$numleaves
|
|||
incgauss=$[($totgauss-$numgauss)/$max_iter_inc] # per-iter increment for #Gauss
|
||||
oov=`cat $lang/oov.int` || exit 1;
|
||||
ciphonelist=`cat $lang/phones/context_indep.csl` || exit 1;
|
||||
norm_vars=`cat $srcdir/norm_vars 2>/dev/null` || norm_vars=false # cmn/cmvn option, default false.
|
||||
norm_vars=`cat $alidir/norm_vars 2>/dev/null` || norm_vars=false # cmn/cmvn option, default false.
|
||||
nj=`cat $alidir/num_jobs` || exit 1;
|
||||
mkdir -p $dir/log
|
||||
echo $nj > $dir/num_jobs
|
||||
|
|
Загрузка…
Ссылка в новой задаче