Julius 4.2
関数
libsent/src/dfa/init_dfa.c

DFA文法ファイルのメモリ上への読み込みとセットアップ [詳細]

#include <sent/stddefs.h>
#include <sent/dfa.h>
#include <sent/vocabulary.h>
#include <sent/htk_hmm.h>

ソースコードを見る。

関数

boolean init_dfa (DFA_INFO *dinfo, char *filename)
 Read in a grammar file and set to DFA grammar structure.
boolean make_dfa_voca_ref (DFA_INFO *dinfo, WORD_INFO *winfo)
 Make correspondence between all words in dictionary and categories in grammar, both from a word to a category and from a category to words.
void dfa_find_pause_word (DFA_INFO *dfa, WORD_INFO *winfo, HTK_HMM_INFO *hmminfo)
 Find pause word and pause category information, and set to the grammar data.
boolean dfa_pause_word_append (DFA_INFO *dst, DFA_INFO *src, int coffset)
 Append the pause word/category information at the last.

説明

DFA文法ファイルのメモリ上への読み込みとセットアップ

文法をファイルから読み込んで認識処理のためにセットアップします. DFA文法ファイルの読み込みや辞書との対応付け,無音カテゴリ・無音単語の 検出を行います.

作者:
Akinobu LEE
日付:
Tue Feb 15 14:20:43 2005
Revision:
1.4

init_dfa.c で定義されています。


関数

boolean init_dfa ( DFA_INFO dinfo,
char *  filename 
)

Read in a grammar file and set to DFA grammar structure.

引数:
dinfo[i/o] a blank DFA data
filename[in] DFA grammar file name

init_dfa.c46 行で定義されています。

参照元 multigram_read_file_and_add().

boolean make_dfa_voca_ref ( DFA_INFO dinfo,
WORD_INFO winfo 
)

Make correspondence between all words in dictionary and categories in grammar, both from a word to a category and from a category to words.

引数:
dinfo[i/o] DFA grammar, category information will be built here.
winfo[i/o] Word dictionary, word-to-category information will be build here.

init_dfa.c74 行で定義されています。

参照元 multigram_add_words_to_grammar(), と multigram_update().

void dfa_find_pause_word ( DFA_INFO dfa,
WORD_INFO winfo,
HTK_HMM_INFO hmminfo 
)

Find pause word and pause category information, and set to the grammar data.

引数:
dfa[i/o] DFA grammar, sp_id and is_sp will be built here.
winfo[in] Word dictionary
hmminfo[in] HTK HMM to provide which is short pause HMM

init_dfa.c107 行で定義されています。

参照元 multigram_update().

boolean dfa_pause_word_append ( DFA_INFO dst,
DFA_INFO src,
int  coffset 
)

Append the pause word/category information at the last.

引数:
dst[i/o] DFA grammar
src[in] DFA grammar to be appended to dst
coffsetappending category point in dst

init_dfa.c138 行で定義されています。

参照元 multigram_append_to_global().