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