#include <sent/htk_hmm.h>
#include <sent/vocabulary.h>
Include dependency graph for chkhmmlist.c:
Go to the source code of this file.
Functions | |
void | make_hmm_basephone_list (HTK_HMM_INFO *hmminfo) |
static void | print_callback_detail (void *x) |
static void | print_callback_name (void *x) |
void | print_all_basephone_detail (HMM_basephone *base) |
void | print_all_basephone_name (HMM_basephone *base) |
static void | count_callback (void *x) |
static void | count_all_phone (HMM_basephone *base) |
static void | mark_word_edge (WORD_INFO *winfo, HMM_basephone *base) |
static void | add_to_error (char *lostname) |
static void | print_error_callback (void *x) |
static void | triphone_callback_normal (void *x) |
static void | triphone_callback_right (void *x) |
static void | triphone_callback_left (void *x) |
void | test_interword_triphone (HTK_HMM_INFO *hmminfo, WORD_INFO *winfo) |
void | make_base_phone (HTK_HMM_INFO *hmminfo, WORD_INFO *winfo) |
Build basephone information. | |
void | print_phone_info (HTK_HMM_INFO *hmminfo) |
Variables | |
static int | bncnt |
Count of basephone that can appear at the beginning of sentence. | |
static int | edcnt |
Count of basephone that can appear at the end of sentence. | |
static HTK_HMM_INFO * | local_hmminfo |
Local work area to hold HTK HMM data. | |
static WORD_INFO * | local_winfo |
Local work area to hold word dictionary. | |
static APATNODE * | local_root |
Local work area to hold basephone index root. | |
static WORD_ID | current_w |
Local work area to hold current word ID. | |
static char | gbuf [MAX_HMMNAME_LEN] |
Local work area for phone name handling. | |
static APATNODE * | error_root |
Error phone list. | |
static int | error_num |
Number of encountered error phone. |
Word dictionary is considered for the test. Only triphones that can appear as word-internal triphones and cross-word triphones on the given dictionary will be considered.
Definition in file chkhmmlist.c.
|
Build a list of base phones by gathering center phones of the defined HMM.
Definition at line 47 of file chkhmmlist.c. Referenced by init_hmminfo(). |
|
Traverse function callback to output detailed information of a basephone in text to stdout.
Definition at line 82 of file chkhmmlist.c. Referenced by print_all_basephone_detail(). |
|
Traverse function callback to output name of a basephone in text to stdout.
Definition at line 94 of file chkhmmlist.c. Referenced by print_all_basephone_name(). |
|
Output all basephone informations to stdout.
Definition at line 105 of file chkhmmlist.c. Referenced by hmm_check(). |
|
Output all basephone names to stdout
Definition at line 115 of file chkhmmlist.c. Referenced by hmm_check(). |
|
Traverse callback function to increment the number of base phones that can appear at beginning of word and end of word.
Definition at line 130 of file chkhmmlist.c. Referenced by count_all_phone(). |
|
Count the total number of base phones that can appear at beginning of word and end of word.
Definition at line 144 of file chkhmmlist.c. Referenced by make_base_phone(). |
|
Mark each basephone if it can appear at beginning or end of a word.
Definition at line 159 of file chkhmmlist.c. Referenced by make_base_phone(). |
|
Add unknown (error) triphone to error list.
Definition at line 210 of file chkhmmlist.c. Referenced by triphone_callback_normal(), triphone_callback_right(), and voca_load_htkdict_line(). |
|
Traverse callback function to output error phone name.
Definition at line 231 of file chkhmmlist.c. Referenced by test_interword_triphone(). |
|
Traverse callback function to check if the cross-word triphones "basephone x - word[current_w]" and "word[current_w] + basephone x" exist, according to the basephone mark.
Definition at line 245 of file chkhmmlist.c. Referenced by test_interword_triphone(). |
|
Traverse callback function to check if the cross-word triphone "basephone x - word[current_w] + basephone x" exist, for words with only one phone: right part.
Definition at line 287 of file chkhmmlist.c. Referenced by triphone_callback_left(). |
|
Traverse callback function to check if the cross-word triphone "basephone x - word[current_w] + basephone x" exist, for words with only one phone: left part.
Definition at line 316 of file chkhmmlist.c. Referenced by test_interword_triphone(). |
|
Top function to check if all the possible triphones on given word dictionary actually exist in the logical HMM.
Definition at line 339 of file chkhmmlist.c. Referenced by hmm_check(). |
|
Build basephone information. Extract base phones from HMM definition, mark them whether they appear on word head or word tail, and count the number.
Definition at line 380 of file chkhmmlist.c. Referenced by hmm_check(). |
|
Output general information concerning phone mapping in HMM definition.
Definition at line 394 of file chkhmmlist.c. Referenced by hmm_check(). |