mkclscript

来自「HTK应用程序」· 代码 · 共 39 行

TXT
39
字号
#!/bin/csh#  generate an HHEd script file for state-clustering triphones#   #  mkclscript command threshold monophone_list##  where monophone_list is a HMM list for the phones (not triphones) #        to be clustered## Script generates a specified command and threhold for a cluster# corresponding to each states of each phone. # The script assumes each model has 3 emitting states.## Copyright (c) Phil Woodland, 1993# Last Updated 5/9/95#if ( $#argv != 3 ) then   echo "usage: mkclscript command threshold monophone_list"   exit 1endifset HMMLIST=$3if (! -f $HMMLIST) then   echo "mkclscript: monophone HMM list $HMMLIST not found"   exit 1endifset monophones=`cat $HMMLIST`foreach i ($monophones)  echo $1 $2 '"ST_'"$i"_2_'"' '{("'"$i"'","*-'"$i"'+*","'"$i"'+*","*-'"$i"'").state[2]}'endforeach i ($monophones)  echo $1 $2 '"ST_'"$i"_3_'"' '{("'"$i"'","*-'"$i"'+*","'"$i"'+*","*-'"$i"'").state[3]}'endforeach i ($monophones)  echo $1 $2 '"ST_'"$i"_4_'"' '{("'"$i"'","*-'"$i"'+*","'"$i"'+*","*-'"$i"'").state[4]}'end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?