strcture for storing the model definition. More...
#include <mdef.h>
Public Attributes | |
int32 | n_ciphone |
int32 | n_phone |
int32 | n_emit_state |
int32 | n_ci_sen |
int32 | n_sen |
int32 | n_tmat |
hash_table_t * | ciphone_ht |
ciphone_t * | ciphone |
phone_t * | phone |
s3senid_t ** | sseq |
int32 | n_sseq |
s3senid_t * | cd2cisen |
s3cipid_t * | sen2cimap |
s3cipid_t | sil |
ph_lc_t *** | wpos_ci_lclist |
s3senid_t * | st2senmap |
strcture for storing the model definition.
The main model definition structure
s3senid_t* mdef_t::cd2cisen |
Parent CI-senone id for each senone; the first n_ci_sen are identity mappings; the CD-senones are contiguous for each parent CI-phone
ciphone_t* mdef_t::ciphone |
CI-phone information for all ciphones
hash_table_t* mdef_t::ciphone_ht |
Hash table for mapping ciphone strings to ids
int32 mdef_t::n_ci_sen |
#CI senones; these are the first
Referenced by approx_cont_mgau_frame_eval().
int32 mdef_t::n_ciphone |
#basephones actually present
Referenced by compress_table(), dict2pid_build(), dict2pid_dump(), word_enter(), and word_trans().
int32 mdef_t::n_emit_state |
#emitting states per phone
Referenced by align_build_sent_hmm(), and dict2pid_build().
int32 mdef_t::n_phone |
#basephones + #triphones actually present
int32 mdef_t::n_sen |
#senones (CI+CD)
Referenced by approx_cont_mgau_frame_eval().
int32 mdef_t::n_sseq |
No. of unique senone sequences in this model
Referenced by dict2pid_dump().
int32 mdef_t::n_tmat |
#transition matrices
phone_t* mdef_t::phone |
Information for all ciphones and triphones
s3cipid_t* mdef_t::sen2cimap |
Parent CI-phone for each senone (CI or CD)
s3cipid_t mdef_t::sil |
SILENCE_CIPHONE id
s3senid_t** mdef_t::sseq |
Unique state (or senone) sequences in this model, shared among all phones/triphones
Referenced by dict2pid_dump().
s3senid_t* mdef_t::st2senmap |
A mapping from State to senone. Only used in sphinx 3.0 HACK!, In general, there is only need for either one of st2senmap or sseq.
ph_lc_t*** mdef_t::wpos_ci_lclist |
wpos_ci_lclist[wpos][ci] = list of lc for <wpos,ci>. wpos_ci_lclist[wpos][ci][lc].rclist = list of rc for <wpos,ci,lc>. Only entries for the known triphones are created to conserve space. (NOTE: FOR INTERNAL USE ONLY.)