40 #ifndef __S2_FSG_SEARCH_H__
41 #define __S2_FSG_SEARCH_H__
45 #include <sphinxbase/glist.h>
46 #include <sphinxbase/cmd_ln.h>
47 #include <sphinxbase/fsg_model.h>
52 #include "fsg_history.h"
53 #include "fsg_lextree.h"
110 #define fsg_search_frame(s) ((s)->frame)
141 int fsg_search_step(
ps_search_t *search,
int frame_idx);
151 char const *fsg_search_hyp(
ps_search_t *search, int32 *out_score);
Collection of lextrees for an FSG.
int32 frame_idx_t
Type for frame index values.
int32 lscr
Total acoustic and lm score for utt.
frame_idx_t frame
Current frame.
struct fsg_history_s * history
For storing the Viterbi search history.
int32 wbeam
Effective beams after applying beam_factor.
Internal implementation of PocketSphinx decoder.
glist_t pnode_active_next
Those activated for the next frame.
Base structure for search module.
Base structure for hypothesis segmentation iterator.
Shared information between a set of HMMs.
struct fsg_lextree_s * lextree
Lextree structure for the currently active FSG.
Implementation of HMM base structure.
fsg_hist_entry_t ** hist
Sequence of history entries.
glist_t pnode_active
Those active in this frame.
int32 bpidx_start
First history entry index this frame.
Building composite triphone (as well as word internal triphones) with the dictionary.
hmm_context_t * hmmctx
HMM context.
ps_seg_t base
Base structure.
int32 beam_orig
Global pruning threshold.
float32 ascale
Acoustic score scale for posterior probabilities.
int32 n_sen_eval
Total senones evaluated this utt.
int16 n_hist
Number of history entries.
int32 pbeam_orig
Pruning threshold for phone transition.
Segmentation "iterator" for FSG history.
int32 wbeam_orig
Pruning threshold for word exit.
fsg_model_t * fsg
FSG model.
a structure for a dictionary.
float32 beam_factor
Dynamic/adaptive factor (<=1) applied to above beams to determine actual effective beams.
int32 bestscore
For beam pruning.
int16 cur
Current position in hist.
Acoustic model structure.
Implementation of FSG search (and "FSG set") structure.
int32 n_hmm_eval
Total HMMs evaluated this utt.
uint8 bestpath
Whether to run bestpath search and confidence annotation at end.
int32 wip
Language weights.
ptmr_t perf
Performance counter.