38 #ifndef _S3_DICT2PID_H_
39 #define _S3_DICT2PID_H_
45 #include <sphinxbase/logmath.h>
46 #include <sphinxbase/bitvec.h>
115 #define dict2pid_rssid(d,ci,lc) (&(d)->rssid[ci][lc])
116 #define dict2pid_ldiph_lc(d,b,r,l) ((d)->ldiph_lc[b][r][l])
117 #define dict2pid_lrdiph_rc(d,b,l,r) ((d)->lrdiph_rc[b][l][r])
Operations on dictionary.
s3ssid_t *** ldiph_lc
For multi-phone words, [base][rc][lc] -> ssid; filled out for word-initial base x rc combinations in ...
int32 n_ssid
#Unique ssid in above, compressed ssid list
Binary format model definition files, with support for heterogeneous topologies and variable-size N-p...
xwdssid_t ** rssid
Right context state sequence id table First dimension: base phone, Second dimension: left context...
void dict2pid_report(dict2pid_t *d2p)
Report a dict2pid data structure.
int dict2pid_free(dict2pid_t *d2p)
Free the memory dict2pid structure.
int16 s3cipid_t
Size definitions for more semantially meaningful units.
bin_mdef_t * mdef
Model definition, used to generate internal ssids on the fly.
int dict2pid_add_word(dict2pid_t *d2p, int32 wid)
Add a word to the dict2pid structure (after adding it to dict).
Size definition of semantically units.
s3ssid_t *** lrdiph_rc
For single-phone words, [base][lc][rc] -> ssid; filled out for single-phone base x lc combinations in...
dict_t * dict
Dictionary this table refers to.
a structure for a dictionary.
void dict2pid_dump(FILE *fp, dict2pid_t *d2p)
For debugging.
s3ssid_t dict2pid_internal(dict2pid_t *d2p, int32 wid, int pos)
Return the senone sequence ID for the given word position.
cross word triphone model structure
dict2pid_t * dict2pid_retain(dict2pid_t *d2p)
Retain a pointer to dict2pid.
xwdssid_t ** lrssid
Left-Right context state sequence id table First dimension: base phone, Second dimension: left contex...
s3cipid_t * dict2pid_get_rcmap(dict2pid_t *d2p, s3wid_t w)
Get RC map.
int32 get_rc_nssid(dict2pid_t *d2p, s3wid_t w)
ARCHAN, A duplicate of get_rc_npid in ctxt_table.h.
dict2pid_t * dict2pid_build(bin_mdef_t *mdef, dict_t *dict)
Build the dict2pid structure for the given model/dictionary.
s3cipid_t * cimap
Index into ssid[] above for each ci phone.
Building composite triphone (as well as word internal triphones) with the dictionary.
s3ssid_t * ssid
Senone Sequence ID list for all context ciphones.