#include <julius.h>
Include dependency graph for outprob_style.c:
Go to the source code of this file.
Functions | |
void | outprob_style_cache_init (WCHMM_INFO *wchmm) |
CD_Set * | lcdset_lookup_with_category (WCHMM_INFO *wchmm, HMM_Logical *hmm, WORD_ID category) |
static void | lcdset_register_with_category (WCHMM_INFO *wchmm, HTK_HMM_INFO *hmminfo, DFA_INFO *dfa, HMM_Logical *hmm, WORD_ID category) |
Make a category-indexed context-dependent (pseudo) state set for the given logical HMM. | |
void | lcdset_register_with_category_all (WCHMM_INFO *wchmm, HTK_HMM_INFO *hmminfo, WORD_INFO *winfo, DFA_INFO *dfa) |
static void | callback_free_lcdset_content (void *arg) |
void | lcdset_remove_with_category_all (WCHMM_INFO *wchmm) |
LOGPROB | outprob_style (WCHMM_INFO *wchmm, int node, int last_wid, int t, HTK_Param *param) |
void | error_missing_right_triphone (HMM_Logical *base, char *rc_name) |
void | error_missing_left_triphone (HMM_Logical *base, char *lc_name) |
Variables | |
static char | rbuf [MAX_HMMNAME_LEN] |
Local workarea for HMM name conversion. | |
static char | lccbuf [MAX_HMMNAME_LEN+7] |
work area for HMM name conversion | |
static char | lccbuf2 [MAX_HMMNAME_LEN+7] |
work area for HMM name conversion |
When using triphone acoustic model, the cross-word triphone handling is done here. The head and tail phoneme of every words has corresponding pseudo phone set on the tree lexicon, so the actual likelihood computation will be done as the following:
To denote which operation to do for a state, AS_Style ID is assigned to each state.
The triphone transformation, that will be performed on the state of 2 and 4 above, will be cached on the tree lxicon by each state per frame, to suppress computation overhead.
Definition in file outprob_style.c.
|
Initialize cache for triphone alternation on word head.
Definition at line 99 of file outprob_style.c. Referenced by init_nodescore(). |
|
Lookup an pseudo phone set with category number (for Julian).
Definition at line 144 of file outprob_style.c. Referenced by lcdset_register_with_category(), outprob_style(), and wchmm_add_word(). |
|
Make a category-indexed context-dependent (pseudo) state set for the given logical HMM. In Julian, the word-end pseudo triphone set can be shrinked by using the category-pair constraint, since the number of possible right-context phones on the word end will be smaller than all phone. This shrinking not only saves computation time but also improves recognition since the approximated value will be closer to the actual value. For example, if a word belongs to category ID 38 and has a phone "a-k" at word end, CD_Set "a-k::38" is generated and assigned to the phone instead of normal CD_Set "a-k". The "a-k::38" set consists of triphones whose right context are the beginning phones within possibly fllowing categories. These will be separated from the normal pseudo phone set.
Definition at line 209 of file outprob_style.c. Referenced by lcdset_register_with_category_all(). |
|
Generate all possible category-indexed pseudo phone sets for Julian.
Definition at line 273 of file outprob_style.c. Referenced by build_wchmm(), and build_wchmm2(). |
|
callback for aptree function to free the content of pseudo phone set.
Definition at line 315 of file outprob_style.c. Referenced by lcdset_remove_with_category_all(). |
|
Remove all the registered category-indexed pseudo state sets. This function will be called when a grammar is changed to re-build the state sets.
Definition at line 343 of file outprob_style.c. Referenced by wchmm_free(). |
|
Calculate output log probability of an input vector on time frame t in input paramter param at a node on tree lexicon.
Definition at line 383 of file outprob_style.c. Referenced by bt_discount_pescore(), get_back_trellis_proceed(), and init_nodescore(). |
|
Output error message when a triphone with the specified right context is not defined.
Definition at line 542 of file outprob_style.c. Referenced by lcdset_register_with_category(), next_word(), and scan_word(). |
|
Output error message when a triphone with the specified right context is not defined.
Definition at line 567 of file outprob_style.c. Referenced by outprob_style(), and scan_word(). |