kbcore.h File Reference
kb core structures, the structure that stores parameters for s3.X search
More...
#include <s3types.h>
#include <cmd_ln.h>
#include <logmath.h>
#include "feat.h"
#include "cont_mgau.h"
#include "ms_mgau.h"
#include "s2_semi_mgau.h"
#include "mdef.h"
#include "dict.h"
#include "dict2pid.h"
#include "fillpen.h"
#include "lm.h"
#include "tmat.h"
#include "subvq.h"
#include "gs.h"
Go to the source code of this file.
Detailed Description
kb core structures, the structure that stores parameters for s3.X search
Define Documentation
#define kbcore_config |
( |
k |
|
) |
((k)->config) |
Access macros; not meant for arbitrary use
#define kbcore_dict |
( |
k |
|
) |
((k)->dict) |
#define kbcore_dict2lmwid |
( |
k, |
|
|
w |
|
) |
((k)->dict2lmwid[w]) |
#define kbcore_dict2pid |
( |
k |
|
) |
((k)->dict2pid) |
#define kbcore_fcb |
( |
k |
|
) |
((k)->fcb) |
#define kbcore_fillpen |
( |
k |
|
) |
((k)->fillpen) |
#define kbcore_gs |
( |
k |
|
) |
((k)->gs) |
#define kbcore_lm |
( |
k |
|
) |
((k)->lmset ? (k)->lmset->cur_lm : NULL) |
#define kbcore_lmset |
( |
k |
|
) |
((k)->lmset) |
#define kbcore_logmath |
( |
k |
|
) |
((k)->logmath) |
#define kbcore_mdef |
( |
k |
|
) |
((k)->mdef) |
#define kbcore_mgau |
( |
k |
|
) |
((k)->mgau) |
#define kbcore_ms_mgau |
( |
k |
|
) |
((k)->ms_mgau) |
#define kbcore_n_mgau |
( |
k |
|
) |
|
Value:((k)->mgau ? mgau_n_mgau((k)->mgau) \
: ((k)->s2_mgau ? (k)->s2_mgau->CdWdPDFMod \
: (k)->ms_mgau->s->n_sen))
#define kbcore_s2_mgau |
( |
k |
|
) |
((k)->s2_mgau) |
#define kbcore_svq |
( |
k |
|
) |
((k)->svq) |
#define kbcore_tmat |
( |
k |
|
) |
((k)->tmat) |
Function Documentation
S3DECODER_EXPORT void kbcore_free |
( |
kbcore_t * |
kbcore |
) |
|
free the kbcore
- Parameters:
-
| kbcore | The kbcore structure |
kbcore_t* kbcore_init |
( |
cmd_ln_t * |
config |
) |
|
Initialize one or more of all the major models: pronunciation dictionary, acoustic models, language models. Parameters are taken from the command line (see cmdln_macro.h)
S3DECODER_EXPORT kbcore_t* New_kbcore |
( |
cmd_ln_t * |
config |
) |
|
S3DECODER_EXPORT void s3_am_init |
( |
kbcore_t * |
kbc |
) |
|
Initialize just the acoustic model for kbcore, taking parameters from the global command-line module.
Sphinx 3.x tree decoders assume silences are unlinked (set them to BAD_S3WID) before used. Whereas the flat lexicon decoder doesn't have such assumption. These two functions change this behavior. Called in mode 3, 4 and 5 to make sure different code works. FIXME: This is dumb.