⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 guess_cdhmm.c

📁 julius version 4.12.about sound recognition.
💻 C
字号:
/** * @file   guess_cdHMM.c *  * <JA> * @brief  %HMM 年盗がコンテキスト巴赂モデルかどうかを夸年する * * %HMMの叹涟烧けル〖ルから冉年が乖われますˉ * </JA> *  * <EN> * @brief  Guess whether the %HMM definition data is a context-dependent model * * The naming rule of %HMM data will be used to determine whether this * is a context-dependent model. * </EN> *  * @author Akinobu LEE * @date   Tue Feb 15 22:30:37 2005 * * $Revision: 1.2 $ *  *//* * Copyright (c) 1991-2007 Kawahara Lab., Kyoto University * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology * Copyright (c) 2005-2007 Julius project team, Nagoya Institute of Technology * All rights reserved */#include <sent/stddefs.h>#include <sent/htk_hmm.h>/**  * Guess whether the given %HMM definition contains context-dependent modeling, * just by the naming rule. *  * @param hmminfo [in] target %HMM definition *  * @return TRUE if the result is context-dependent model, FALSE if context-dependent model. */booleanguess_if_cd_hmm(HTK_HMM_INFO *hmminfo){  HMM_Logical *dt;  int rnum, lnum, totalnum;  /* check if there is a logical HMM whose name includes either HMM_RC_DLIM     or HMM_LC_DLIM */  rnum = lnum = totalnum = 0;  for (dt = hmminfo->lgstart; dt; dt = dt->next) {    if (strstr(dt->name, HMM_RC_DLIM) != NULL) rnum++;    if (strstr(dt->name, HMM_LC_DLIM) != NULL) lnum++;    totalnum++;  }  if (rnum > 0) {    if (lnum == 0) {      jlog("Warning: guess_cdHMM: cannot handle right-context dependency correctly\n");      return(FALSE);    } else {      return(TRUE);    }  }  return(FALSE);}

⌨️ 快捷键说明

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