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.
Classes | |
struct | kbcore_t |
Macros | |
#define | kbcore_config(k) ((k)->config) |
#define | kbcore_fcb(k) ((k)->fcb) |
#define | kbcore_mdef(k) ((k)->mdef) |
#define | kbcore_dict(k) ((k)->dict) |
#define | kbcore_dict2pid(k) ((k)->dict2pid) |
#define | kbcore_lm(k) ((k)->lmset ? (k)->lmset->cur_lm : NULL) |
#define | kbcore_fillpen(k) ((k)->fillpen) |
#define | kbcore_dict2lmwid(k, w) ((k)->dict2lmwid[w]) |
#define | kbcore_mgau(k) ((k)->mgau) |
#define | kbcore_ms_mgau(k) ((k)->ms_mgau) |
#define | kbcore_s2_mgau(k) ((k)->s2_mgau) |
#define | kbcore_svq(k) ((k)->svq) |
#define | kbcore_gs(k) ((k)->gs) |
#define | kbcore_tmat(k) ((k)->tmat) |
#define | kbcore_lmset(k) ((k)->lmset) |
#define | kbcore_n_mgau(k) |
#define | kbcore_logmath(k) ((k)->logmath) |
Functions | |
S3DECODER_EXPORT kbcore_t * | New_kbcore (cmd_ln_t *config) |
S3DECODER_EXPORT void | s3_am_init (kbcore_t *kbc) |
kbcore_t * | kbcore_init (cmd_ln_t *config) |
S3DECODER_EXPORT void | kbcore_free (kbcore_t *kbcore) |
void | unlinksilences (lm_t *l, kbcore_t *kbc, dict_t *d) |
void | linksilences (lm_t *l, kbcore_t *kbc, dict_t *d) |
kb core structures, the structure that stores parameters for s3.X search
#define kbcore_config | ( | k | ) | ((k)->config) |
Access macros; not meant for arbitrary use
#define kbcore_dict | ( | k | ) | ((k)->dict) |
Referenced by dump_all_whmm(), dump_all_word(), flat_fwd_dag_add_fudge_edges(), whmm_eval(), whmm_exit(), whmm_transition(), word_enter(), and word_trans().
#define kbcore_dict2lmwid | ( | k, | |
w | |||
) | ((k)->dict2lmwid[w]) |
#define kbcore_dict2pid | ( | k | ) | ((k)->dict2pid) |
#define kbcore_fcb | ( | k | ) | ((k)->fcb) |
Referenced by main().
#define kbcore_fillpen | ( | k | ) | ((k)->fillpen) |
Referenced by flat_fwd_dag_add_fudge_edges(), and word_trans().
#define kbcore_gs | ( | k | ) | ((k)->gs) |
#define kbcore_lm | ( | k | ) | ((k)->lmset ? (k)->lmset->cur_lm : NULL) |
Referenced by flat_fwd_dag_add_fudge_edges(), and word_enter().
#define kbcore_lmset | ( | k | ) | ((k)->lmset) |
#define kbcore_logmath | ( | k | ) | ((k)->logmath) |
#define kbcore_mdef | ( | k | ) | ((k)->mdef) |
Referenced by dump_all_whmm(), whmm_eval(), word_enter(), and word_trans().
#define kbcore_mgau | ( | k | ) | ((k)->mgau) |
#define kbcore_ms_mgau | ( | k | ) | ((k)->ms_mgau) |
#define kbcore_n_mgau | ( | k | ) |
#define kbcore_s2_mgau | ( | k | ) | ((k)->s2_mgau) |
#define kbcore_svq | ( | k | ) | ((k)->svq) |
#define kbcore_tmat | ( | k | ) | ((k)->tmat) |
Referenced by dump_all_whmm(), dump_all_word(), whmm_eval(), whmm_exit(), whmm_transition(), and word_enter().
S3DECODER_EXPORT void kbcore_free | ( | kbcore_t * | kbcore | ) |
free the kbcore
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 | ) |
Create a new kbcore
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.