PocketSphinx 5prealpha
mdef_t Struct Reference

The main model definition structure. More...

#include <mdef.h>

Data Fields

int32 n_ciphone
 number basephones actually present More...
 
int32 n_phone
 number basephones + number triphones actually present More...
 
int32 n_emit_state
 number emitting states per phone More...
 
int32 n_ci_sen
 number CI senones; these are the first More...
 
int32 n_sen
 number senones (CI+CD) More...
 
int32 n_tmat
 number transition matrices More...
 
hash_table_t * ciphone_ht
 Hash table for mapping ciphone strings to ids. More...
 
ciphone_tciphone
 CI-phone information for all ciphones. More...
 
phone_tphone
 Information for all ciphones and triphones. More...
 
uint16 ** sseq
 Unique state (or senone) sequences in this model, shared among all phones/triphones. More...
 
int32 n_sseq
 No. More...
 
int16 * 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. More...
 
int16 * sen2cimap
 Parent CI-phone for each senone (CI or CD) More...
 
int16 sil
 SILENCE_CIPHONE id. More...
 
ph_lc_t *** wpos_ci_lclist
 wpos_ci_lclist[wpos][ci] = list of lc for <wpos,ci>. More...
 

Detailed Description

The main model definition structure.

strcture for storing the model definition.

Definition at line 135 of file mdef.h.

Field Documentation

◆ cd2cisen

int16* 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.

Definition at line 150 of file mdef.h.

Referenced by bin_mdef_read_text(), mdef_free(), and mdef_is_cisenone().

◆ ciphone

ciphone_t* mdef_t::ciphone

CI-phone information for all ciphones.

Definition at line 144 of file mdef.h.

Referenced by bin_mdef_read_text(), mdef_ciphone_str(), mdef_free(), and mdef_phone_id().

◆ ciphone_ht

hash_table_t* mdef_t::ciphone_ht

Hash table for mapping ciphone strings to ids.

Definition at line 143 of file mdef.h.

Referenced by mdef_ciphone_id(), and mdef_free().

◆ n_ci_sen

int32 mdef_t::n_ci_sen

number CI senones; these are the first

Definition at line 139 of file mdef.h.

Referenced by bin_mdef_read_text(), and mdef_report().

◆ n_ciphone

int32 mdef_t::n_ciphone

number basephones actually present

Definition at line 136 of file mdef.h.

Referenced by bin_mdef_read_text(), mdef_free(), and mdef_report().

◆ n_emit_state

int32 mdef_t::n_emit_state

number emitting states per phone

Definition at line 138 of file mdef.h.

Referenced by bin_mdef_read_text(), and mdef_report().

◆ n_phone

int32 mdef_t::n_phone

number basephones + number triphones actually present

Definition at line 137 of file mdef.h.

Referenced by bin_mdef_read_text(), and mdef_report().

◆ n_sen

int32 mdef_t::n_sen

number senones (CI+CD)

Definition at line 140 of file mdef.h.

Referenced by bin_mdef_read_text(), mdef_is_cisenone(), and mdef_report().

◆ n_sseq

int32 mdef_t::n_sseq

No.

of unique senone sequences in this model

Definition at line 148 of file mdef.h.

Referenced by bin_mdef_read_text(), and mdef_report().

◆ n_tmat

int32 mdef_t::n_tmat

number transition matrices

Definition at line 141 of file mdef.h.

Referenced by bin_mdef_read_text().

◆ phone

phone_t* mdef_t::phone

Information for all ciphones and triphones.

Definition at line 145 of file mdef.h.

Referenced by bin_mdef_read_text(), mdef_free(), and mdef_phone_str().

◆ sen2cimap

int16* mdef_t::sen2cimap

Parent CI-phone for each senone (CI or CD)

Definition at line 153 of file mdef.h.

Referenced by bin_mdef_read_text(), and mdef_free().

◆ sil

int16 mdef_t::sil

SILENCE_CIPHONE id.

Definition at line 155 of file mdef.h.

Referenced by bin_mdef_read_text(), and mdef_phone_id().

◆ sseq

uint16** mdef_t::sseq

Unique state (or senone) sequences in this model, shared among all phones/triphones.

Definition at line 146 of file mdef.h.

Referenced by bin_mdef_read_text(), and mdef_free().

◆ wpos_ci_lclist

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.)

Definition at line 157 of file mdef.h.

Referenced by bin_mdef_read_text(), mdef_free(), and mdef_phone_id().


The documentation for this struct was generated from the following file: