106 #ifndef __S2_FSG_PSUBTREE_H__
107 #define __S2_FSG_PSUBTREE_H__
136 #define FSG_PNODE_CTXT_BVSZ 2
217 #define fsg_pnode_leaf(p) ((p)->leaf)
218 #define fsg_pnode_logs2prob(p) ((p)->logs2prob)
219 #define fsg_pnode_succ(p) ((p)->next.succ)
220 #define fsg_pnode_fsglink(p) ((p)->next.fsglink)
221 #define fsg_pnode_sibling(p) ((p)->sibling)
222 #define fsg_pnode_hmmptr(p) (&((p)->hmm))
223 #define fsg_pnode_ci_ext(p) ((p)->ci_ext)
224 #define fsg_pnode_ppos(p) ((p)->ppos)
225 #define fsg_pnode_leaf(p) ((p)->leaf)
226 #define fsg_pnode_ctxt(p) ((p)->ctxt)
228 #define fsg_pnode_add_ctxt(p,c) ((p)->ctxt.bv[(c)>>5] |= (1 << ((c)&0x001f)))
strcture for storing the model definition.
Definition: mdef.h:184
Definition: fsg_psubtree.h:138
void fsg_psubtree_pnode_deactivate(fsg_pnode_t *pnode)
#define FSG_PNODE_CTXT_BVSZ
Definition: fsg_psubtree.h:136
uint8 leaf
Definition: fsg_psubtree.h:210
Definition: word_fsg.h:187
void fsg_psubtree_dump(fsg_pnode_t *alloc_head, FILE *fp, dict_t *dict, mdef_t *mdef)
An individual HMM among the HMM search space.
Operations on dictionary.
int fsg_psubtree_pnode_enter(fsg_pnode_t *pnode, int32 score, int32 frame, int32 bpidx)
word_fsglink_t * fsglink
Definition: fsg_psubtree.h:169
union fsg_pnode_s::@3 next
uint8 ppos
Definition: fsg_psubtree.h:209
struct fsg_pnode_s * succ
Definition: fsg_psubtree.h:168
HMM data structure and operation.
uint8 ci_ext
Definition: fsg_psubtree.h:208
void fsg_pnode_add_all_ctxt(fsg_pnode_ctxt_t *ctxt)
Size definition of semantically units. Common for both s3 and s3.X decoder.
Shared information between a set of HMMs.
struct fsg_pnode_s * sibling
Definition: fsg_psubtree.h:183
hmm_t hmm
Definition: fsg_psubtree.h:213
uint32 fsg_pnode_ctxt_sub(fsg_pnode_ctxt_t *src, fsg_pnode_ctxt_t *sub)
a structure for a dictionary.
Definition: dict.h:146
void fsg_psubtree_free(fsg_pnode_t *alloc_head)
an fsg node. All transitions (words) out of any given FSG state represented are by a phonetic prefix ...
Definition: fsg_psubtree.h:159
int32 logs2prob
Definition: fsg_psubtree.h:192
Definition: word_fsg.h:165
fsg_pnode_t * fsg_psubtree_init(hmm_context_t *ctx, word_fsg_t *fsg, int32 from_state, fsg_pnode_t **alloc_head, cmd_ln_t *config, logmath_t *logmath)
struct fsg_pnode_s fsg_pnode_t
struct fsg_pnode_s * alloc_next
Definition: fsg_psubtree.h:177
fsg_pnode_ctxt_t ctxt
Definition: fsg_psubtree.h:206