Julius 4.2
関数
libsent/src/hmminfo/hmm_lookup.c

HMM の名前から実体を検索する [詳細]

#include <sent/stddefs.h>
#include <sent/htk_hmm.h>
#include <sent/ptree.h>

ソースコードを見る。

関数

HTK_HMM_Datahtk_hmmdata_lookup_physical (HTK_HMM_INFO *hmminfo, char *keyname)
 Look up physical (defined in HTK HMM definition file) HMM by its name.
HMM_Logicalhtk_hmmdata_lookup_logical (HTK_HMM_INFO *hmminfo, char *keyname)
 Look up logical HMM by its name.
static void hmm_count_logical_num (HTK_HMM_INFO *hmminfo)
 Count the number of logical HMM and store it.
void hmm_add_physical_to_logical (HTK_HMM_INFO *hmminfo)
 Add all physical HMM to logical HMM.
static boolean hmm_add_pseudo_phones_sub (HTK_HMM_INFO *hmminfo, char *name)
 Add a pseudo monophone and pseudo biphone to logical HMM.
void hmm_add_pseudo_phones (HTK_HMM_INFO *hmminfo)
 Update logical HMM list by adding all the possible pseudo monophone and biphone to the list.
int hmm_logical_state_num (HMM_Logical *lg)
 Generic function to get the number of states in a logical HMM.
HTK_HMM_Transhmm_logical_trans (HMM_Logical *lg)
 Generic function to get transition matrix of a logical HMM.

説明

HMM の名前から実体を検索する

"g-u+i" などの HMM 論理名から,対応する HMM の定義を検索します.

検索結果は論理HMM HMM_Logical へのポインタで返されます.HMM_Logical は, 実際に定義されている HMM へのポインタか,あるいはバイフォン・モノフォン の論理HMM名でかつそれらがHMM定義ファイルやHMMListで定義されていない場合, 対応する pseudo HMM set へのポインタのどちらかを保持しています.

また,論理名から定義名へのマッピング関数への実HMM名と pseudo HMM名の 追加登録もここで行ないます.

作者:
Akinobu LEE
日付:
Tue Feb 15 22:34:30 2005
Revision:
1.5

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


関数

HTK_HMM_Data* htk_hmmdata_lookup_physical ( HTK_HMM_INFO hmminfo,
char *  keyname 
)

Look up physical (defined in HTK HMM definition file) HMM by its name.

引数:
hmminfo[in] HMM definition data
keyname[in] key string of HMM name
戻り値:
pointer to the found physical HMM, NULL if not found.

hmm_lookup.c63 行で定義されています。

参照元 rdhmmlist().

HMM_Logical* htk_hmmdata_lookup_logical ( HTK_HMM_INFO hmminfo,
char *  keyname 
)

Look up logical HMM by its name.

引数:
hmminfo[in] HMM definition data
keyname[in] key string of HMM name
戻り値:
pointer to the found logical HMM, NULL if not found.

hmm_lookup.c83 行で定義されています。

参照元 get_left_context_HMM(), get_right_context_HMM(), htk_hmm_set_pause_model(), new_str2phseq(), print_hmminfo(), triphone_callback_normal(), triphone_callback_right(), voca_load_htkdict_line(), voca_load_wordlist_line(), と voca_mono2tri().

static void hmm_count_logical_num ( HTK_HMM_INFO hmminfo) [static]

Count the number of logical HMM and store it.

引数:
hmminfo[in] HMM definition data.

hmm_lookup.c100 行で定義されています。

参照元 hmm_add_physical_to_logical(), と hmm_add_pseudo_phones().

void hmm_add_physical_to_logical ( HTK_HMM_INFO hmminfo)

Add all physical HMM to logical HMM.

This function should be called only if HMMList is not specified. Julius assumes all the triphones should be explicitly mapped using HMMList file.

引数:
hmminfo[in] HMM definition data.

hmm_lookup.c120 行で定義されています。

参照元 init_hmminfo().

static boolean hmm_add_pseudo_phones_sub ( HTK_HMM_INFO hmminfo,
char *  name 
) [static]

Add a pseudo monophone and pseudo biphone to logical HMM.

Logical HMM specified in HMMlist precedes pseudo HMM: if some monophones or biphones are already defined in HMMList, pseudo HMM will not be added.

引数:
hmminfo[in] HMM definition data.
name[in] name of the pseudo phone to add.

hmm_lookup.c169 行で定義されています。

参照元 hmm_add_pseudo_phones().

void hmm_add_pseudo_phones ( HTK_HMM_INFO hmminfo)

Update logical HMM list by adding all the possible pseudo monophone and biphone to the list.

引数:
hmminfo[in] HMM definition data.

hmm_lookup.c211 行で定義されています。

参照元 initialize_HMM().

int hmm_logical_state_num ( HMM_Logical lg)

Generic function to get the number of states in a logical HMM.

引数:
lg[in] logical HMM
戻り値:
the number of states in the logical HMM.

hmm_lookup.c255 行で定義されています。

参照元 adjust_sc_index(), do_align(), get_outtrans_list(), make_phseq(), max_out_arc(), new_make_word_hmm_with_lm(), next_word(), scan_word(), totalstatelen(), voca_set_stats(), wchmm_add_word(), wchmm_duplicate_leafnode(), wchmm_duplicate_state(), と wchmm_link_subword().

HTK_HMM_Trans* hmm_logical_trans ( HMM_Logical lg)

Generic function to get transition matrix of a logical HMM.

引数:
lg[in] logical HMM
戻り値:
pointer to the transition matrix of the logical HMM.

hmm_lookup.c271 行で定義されています。

参照元 adjust_sc_index(), get_outtrans_list(), max_out_arc(), new_make_word_hmm_with_lm(), next_word(), wchmm_add_word(), wchmm_calc_wordend_arc(), wchmm_duplicate_leafnode(), と wchmm_link_subword().