htk的第三章例题的源代码,按照htkbook做就可以了,很快就会熟悉 htk的

源代码在线查看: mkclscript

软件大小: 2320 K
上传用户: ashdfg
关键词: htk htkbook 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				#!/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 1				endif								set HMMLIST=$3				if (! -f $HMMLIST) then				   echo "mkclscript: monophone HMM list $HMMLIST not found"				   exit 1				endif								set monophones=`cat $HMMLIST`				foreach i ($monophones)				  echo $1 $2 '"ST_'"$i"_2_'"' '{("'"$i"'","*-'"$i"'+*","'"$i"'+*","*-'"$i"'").state[2]}'				end				foreach i ($monophones)				  echo $1 $2 '"ST_'"$i"_3_'"' '{("'"$i"'","*-'"$i"'+*","'"$i"'+*","*-'"$i"'").state[3]}'				end				foreach i ($monophones)				  echo $1 $2 '"ST_'"$i"_4_'"' '{("'"$i"'","*-'"$i"'+*","'"$i"'+*","*-'"$i"'").state[4]}'				end							

相关资源