134 #ifndef __S2_WORD_FSG_H__
135 #define __S2_WORD_FSG_H__
174 #define word_fsglink_from_state(l) ((l)->from_state)
175 #define word_fsglink_to_state(l) ((l)->to_state)
176 #define word_fsglink_wid(l) ((l)->wid)
177 #define word_fsglink_logs2prob(l) ((l)->logs2prob)
234 #define word_fsg_name(f) ((f)->name)
235 #define word_fsg_n_state(f) ((f)->n_state)
236 #define word_fsg_start_state(f) ((f)->start_state)
237 #define word_fsg_final_state(f) ((f)->final_state)
238 #define word_fsg_lw(f) ((f)->lw)
239 #define word_fsg_use_altpron(f) ((f)->use_altpron)
240 #define word_fsg_use_filler(f) ((f)->use_filler)
241 #define word_fsg_trans(f,i,j) ((f)->trans[i][j])
242 #define word_fsg_null_trans(f,i,j) ((f)->null_trans[i][j])
243 #define word_fsg_lc(f,s) ((f)->lc[s])
244 #define word_fsg_rc(f,s) ((f)->rc[s])
297 int use_altpron,
int use_filler,
305 int use_altpron,
int use_filler,
313 int use_altpron,
int use_filler,
strcture for storing the model definition.
Definition: mdef.h:184
struct word_fsglink_s word_fsglink_t
int32 word_fsg_set_start_state(word_fsg_t *fsg, int32 new_start_state)
char * name
Definition: word_fsg.h:188
int32 s3wid_t
Definition: s3types.h:136
void word_fsg_write(word_fsg_t *fsg, FILE *fp)
tmat_t * tmat
Definition: word_fsg.h:229
float32 lw
Definition: word_fsg.h:196
Definition: word_fsg.h:187
glist_t ** trans
Definition: word_fsg.h:198
int32 logs2prob
Definition: word_fsg.h:169
kb core structures, the structure that stores parameters for s3.X search
Operations on dictionary.
word_fsg_t * word_fsg_readfile(const char *file, int use_altpron, int use_filler, kbcore_t *kbc)
ctxt_table_t * ctxt
Definition: word_fsg.h:230
int32 from_state
Definition: word_fsg.h:166
uint8 use_filler
Definition: word_fsg.h:194
int32 final_state
Definition: word_fsg.h:191
word_fsg_t * word_fsg_read(FILE *fp, int use_altpron, int use_filler, kbcore_t *kbc)
dict_t * dict
Definition: word_fsg.h:227
void word_fsg_free(word_fsg_t *)
Size definition of semantically units. Common for both s3 and s3.X decoder.
a structure for a dictionary.
Definition: dict.h:146
Transition matrix data structure.
void word_fsg_writefile(word_fsg_t *fsg, char *file)
int8 ** lc
Definition: word_fsg.h:223
Transition matrix data structure. All phone HMMs are assumed to have the same topology.
Definition: tmat.h:113
struct word_fsg_s word_fsg_t
int32 n_ciphone
Definition: word_fsg.h:226
word_fsg_t * word_fsg_load(s2_fsg_t *s2_fsg, int use_altpron, int use_filler, kbcore_t *kbc)
int32 to_state
Definition: word_fsg.h:167
uint8 use_altpron
Definition: word_fsg.h:192
int32 word_fsg_set_final_state(word_fsg_t *fsg, int32 new_final_state)
mdef_t * mdef
Definition: word_fsg.h:228
Definition: word_fsg.h:165
int8 ** rc
Definition: word_fsg.h:223
int32 start_state
Definition: word_fsg.h:190
s3wid_t wid
Definition: word_fsg.h:168
int32 n_state
Definition: word_fsg.h:189
Definition: ctxt_table.h:353
word_fsglink_t *** null_trans
Definition: word_fsg.h:201