зеркало из https://github.com/mozilla/kaldi.git
trunk: adding label sorting to graph fst before composition in utils/mkgraph.sh
git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@4647 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
This commit is contained in:
Родитель
5b60d29ed1
Коммит
f8cbb8873b
|
@ -60,7 +60,7 @@ mkdir -p $lang/tmp
|
|||
if [[ ! -s $lang/tmp/LG.fst || $lang/tmp/LG.fst -ot $lang/G.fst || \
|
||||
$lang/tmp/LG.fst -ot $lang/L_disambig.fst ]]; then
|
||||
fsttablecompose $lang/L_disambig.fst $lang/G.fst | fstdeterminizestar --use-log=true | \
|
||||
fstminimizeencoded > $lang/tmp/LG.fst || exit 1;
|
||||
fstminimizeencoded | fstarcsort --sort_type=ilabel > $lang/tmp/LG.fst || exit 1;
|
||||
fstisstochastic $lang/tmp/LG.fst || echo "[info]: LG not stochastic."
|
||||
fi
|
||||
|
||||
|
@ -71,7 +71,8 @@ if [[ ! -s $clg || $clg -ot $lang/tmp/LG.fst ]]; then
|
|||
fstcomposecontext --context-size=$N --central-position=$P \
|
||||
--read-disambig-syms=$lang/phones/disambig.int \
|
||||
--write-disambig-syms=$lang/tmp/disambig_ilabels_${N}_${P}.int \
|
||||
$lang/tmp/ilabels_${N}_${P} < $lang/tmp/LG.fst >$clg
|
||||
$lang/tmp/ilabels_${N}_${P} < $lang/tmp/LG.fst |\
|
||||
fstarcsort --sort_type=ilabel > $clg
|
||||
fstisstochastic $clg || echo "[info]: CLG not stochastic."
|
||||
fi
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче