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

📄 get_next.c

📁 julius version 4.12.about sound recognition.
💻 C
字号:
/* * 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/vocabulary.h>#include <sent/dfa.h>#include <sent/speech.h>#include "nextword.h"extern WORD_INFO *winfo;extern DFA_INFO *dfa;extern char **termname;/* $B%U%i%0C#(B */extern boolean no_term_file;extern boolean verbose_flag;extern boolean term_mode;/* $B<!$K@\B32DG=$J%+%F%4%j$HA+0\@h>uBV$N=89g$rJV$9(B */intnext_terms(int stateid, int *termbuf, int *nextstatebuf){  DFA_ARC *arc, *arc2;  int cate, ns;  int cnum;  cnum = 0;  for (arc = dfa->st[stateid].arc; arc; arc = arc->next) {    cate = arc->label;    ns = arc->to_state;    if (dfa->is_sp[cate]) {      for (arc2 = dfa->st[ns].arc; arc2; arc2 = arc2->next) {	termbuf[cnum] = arc2->label;	nextstatebuf[cnum] = arc2->to_state;	cnum++;      }    } else {			/* not noise */      termbuf[cnum] = cate;      nextstatebuf[cnum] = ns;      cnum++;    }  }  return cnum;}     /* $B%+%F%4%jHV9f$N=EJ#$rHr$1$k(B */intcompaction_int(int *a, int num){  int i,j,d;  d = 0;  for(i=0;i<num;i++) {    for (j=0;j<d;j++) {      if (a[i] == a[j]) {	break;      }    }    if (j == d) {      a[d++] = a[i];    }  }  return d;}

⌨️ 快捷键说明

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