SphinxBase 0.6
|
Implementation-specific functions for operating on ngram_model_t objects. More...
#include <ngram_model_internal.h>
Data Fields | |
void(* | free )(ngram_model_t *model) |
Implementation-specific function for freeing an ngram_model_t. | |
int(* | apply_weights )(ngram_model_t *model, float32 lw, float32 wip, float32 uw) |
Implementation-specific function for applying language model weights. | |
int32(* | score )(ngram_model_t *model, int32 wid, int32 *history, int32 n_hist, int32 *n_used) |
Implementation-specific function for querying language model score. | |
int32(* | raw_score )(ngram_model_t *model, int32 wid, int32 *history, int32 n_hist, int32 *n_used) |
Implementation-specific function for querying raw language model probability. | |
int32(* | add_ug )(ngram_model_t *model, int32 wid, int32 lweight) |
Implementation-specific function for adding unigrams. | |
void(* | flush )(ngram_model_t *model) |
Implementation-specific function for purging N-Gram cache. | |
ngram_iter_t *(* | iter )(ngram_model_t *model, int32 wid, int32 *history, int32 n_hist) |
Implementation-specific function for iterating. | |
ngram_iter_t *(* | mgrams )(ngram_model_t *model, int32 m) |
Implementation-specific function for iterating. | |
ngram_iter_t *(* | successors )(ngram_iter_t *itor) |
Implementation-specific function for iterating. | |
int32 const *(* | iter_get )(ngram_iter_t *itor, int32 *out_score, int32 *out_bowt) |
Implementation-specific function for iterating. | |
ngram_iter_t *(* | iter_next )(ngram_iter_t *itor) |
Implementation-specific function for iterating. | |
void(* | iter_free )(ngram_iter_t *itor) |
Implementation-specific function for iterating. | |
Implementation-specific functions for operating on ngram_model_t objects.
Definition at line 110 of file ngram_model_internal.h.
int32(* ngram_funcs_s::add_ug) (ngram_model_t *model, int32 wid, int32 lweight) |
Implementation-specific function for adding unigrams.
This function updates the internal structures of a language model to add the given unigram with the given weight (defined as a log-factor applied to the uniform distribution). This includes reallocating or otherwise resizing the set of unigrams.
Definition at line 150 of file ngram_model_internal.h.
Referenced by ngram_model_add_word().
int(* ngram_funcs_s::apply_weights) (ngram_model_t *model, float32 lw, float32 wip, float32 uw) |
Implementation-specific function for applying language model weights.
Definition at line 118 of file ngram_model_internal.h.
Referenced by ngram_model_apply_weights().
void(* ngram_funcs_s::flush) (ngram_model_t *model) |
Implementation-specific function for purging N-Gram cache.
Definition at line 155 of file ngram_model_internal.h.
Referenced by ngram_model_flush().
void(* ngram_funcs_s::free) (ngram_model_t *model) |
Implementation-specific function for freeing an ngram_model_t.
Definition at line 114 of file ngram_model_internal.h.
Referenced by ngram_model_free().
ngram_iter_t *(* ngram_funcs_s::iter) (ngram_model_t *model, int32 wid, int32 *history, int32 n_hist) |
Implementation-specific function for iterating.
Definition at line 160 of file ngram_model_internal.h.
Referenced by ngram_ng_iter().
void(* ngram_funcs_s::iter_free) (ngram_iter_t *itor) |
Implementation-specific function for iterating.
Definition at line 187 of file ngram_model_internal.h.
Referenced by ngram_iter_free().
int32 const *(* ngram_funcs_s::iter_get) (ngram_iter_t *itor, int32 *out_score, int32 *out_bowt) |
Implementation-specific function for iterating.
Definition at line 175 of file ngram_model_internal.h.
Referenced by ngram_iter_get().
ngram_iter_t *(* ngram_funcs_s::iter_next) (ngram_iter_t *itor) |
Implementation-specific function for iterating.
Definition at line 182 of file ngram_model_internal.h.
Referenced by ngram_iter_next().
ngram_iter_t *(* ngram_funcs_s::mgrams) (ngram_model_t *model, int32 m) |
Implementation-specific function for iterating.
Definition at line 165 of file ngram_model_internal.h.
Referenced by ngram_model_mgrams().
int32(* ngram_funcs_s::raw_score) (ngram_model_t *model, int32 wid, int32 *history, int32 n_hist, int32 *n_used) |
Implementation-specific function for querying raw language model probability.
Definition at line 134 of file ngram_model_internal.h.
Referenced by ngram_ng_prob().
int32(* ngram_funcs_s::score) (ngram_model_t *model, int32 wid, int32 *history, int32 n_hist, int32 *n_used) |
Implementation-specific function for querying language model score.
Definition at line 125 of file ngram_model_internal.h.
Referenced by ngram_ng_score().
ngram_iter_t *(* ngram_funcs_s::successors) (ngram_iter_t *itor) |
Implementation-specific function for iterating.
Definition at line 170 of file ngram_model_internal.h.
Referenced by ngram_iter_successors().