#include <julius.h>
Include dependency graph for hmm_check.c:
Go to the source code of this file.
Defines | |
#define | PHSTEP 10 |
Malloc step for phoneme conversion. | |
Functions | |
static HMM_Logical ** | new_str2phseq (char *str, HTK_HMM_INFO *hmminfo, int *len_ret) |
Convert phoneme sequences to logical HMM sequences, and output the result. | |
static boolean | test_expand_triphone (HTK_HMM_INFO *hmminfo) |
void | hmm_check (HTK_HMM_INFO *hmminfo, WORD_INFO *winfo) |
Definition in file hmm_check.c.
static HMM_Logical** new_str2phseq | ( | char * | str, | |
HTK_HMM_INFO * | hmminfo, | |||
int * | len_ret | |||
) | [static] |
Convert phoneme sequences to logical HMM sequences, and output the result.
This function is for testing procedure to convert words in dictionary to corresponding HMM sequences in Julius/Julian, given an HMMList and HTK HMM definition.
Given a space-separated list of phoneme names in a string, each phonemes will be converted to context-dependent style (if using triphone model), and then converted to HMM sequence that will finally be used for recognition. Then, the following data will be output for all HMM:
Additionally, specifying '|' in the string gives a word boundary between phonemes, and triphone conversion will consider the cross-word expansion.
str | [i/o] string that contains space-saparated phoneme sequence. | |
hmminfo | [in] HMM definition structure | |
len_ret | [out] num of elements in the return value |
Definition at line 80 of file hmm_check.c.
Referenced by test_expand_triphone().
static boolean test_expand_triphone | ( | HTK_HMM_INFO * | hmminfo | ) | [static] |
Read in line from stdin as phoneme sequence and try convertion to triphone for checking.
hmminfo | [in] HMM definition structure |
Definition at line 252 of file hmm_check.c.
Referenced by hmm_check().
void hmm_check | ( | HTK_HMM_INFO * | hmminfo, | |
WORD_INFO * | winfo | |||
) |
Mode to do interactive triphone conversion check ("-check triphone").
hmminfo | [in] HMM definition structure | |
winfo | [in] word dictionary |
Definition at line 294 of file hmm_check.c.
Referenced by initialize_dict(), and multigram_read_file().