234 #define SRCH_SUCCESS 0
235 #define SRCH_FAILURE 1
250 #define OPERATION_ALIGN 0
256 #define OPERATION_ALLPHONE 1
258 #define OPERATION_GRAPH 2
262 #define OPERATION_FLATFWD 3
269 #define OPERATION_TST_DECODE 4
276 #define OPERATION_WST_DECODE 5
283 #define OPERATION_EVANDRO_MODE 6
290 #define OPERATION_DAVID_MODE 7
302 #define OPERATION_ARTHUR_MODE 8
310 #define OPERATION_YITAO_MODE 9
315 #define OPERATION_RAVI_MODE 10
326 #define OPERATION_STEVE_MODE 88
337 #define OPERATION_DO_NOTHING 1368
343 #define OPERATION_DEBUG 1369
350 #define GRAPH_STRUCT_FLAT 0
351 #define GRAPH_STRUCT_TST 1
352 #define GRAPH_STRUCT_WST 2
353 #define GRAPH_STRUCT_GENGRAPH 3
354 #define GRAPH_STRUCT_PHMM 4
356 #define GMM_STRUCT_CDHMM 0
357 #define GMM_STRUCT_SCHMM 1
360 #define GAUDEN_EVAL_WINDOW 8
364 #define DFLT_UTT_SIZE 5000
365 #define DFLT_NUM_SEGS 200
565 int (*
add_lm)(
void* srch_struct,
577 word_fsg_t* (*read_fsgfile)(
void* srch_struct,
660 glist_t (*
gen_hyp) (
void * srch_struct
669 dag_t* (*gen_dag) (
void* srch_struct,
689 int (*
dag_dump) (
void * srch_struct,
847 int32 block_nfeatvec,
900 int32 srch_set_am(
void);
903 int32 srch_add_am(
void);
906 int32 srch_delete_am(
void);
909 int32 srch_add_lm(
void);
913 int32 srch_set_mllr(
void);
916 int32 srch_add_mllr(
void);
919 int32 srch_delete_mllr(
void);
922 int32 srch_set_lamdafn(
void);
925 int32 srch_add_lamdafn(
void);
928 int32 srch_delete_lamdafn(
void);
931 int32 srch_add_words_to_dict(
void);
int32 segsz_sz
Definition: srch.h:816
int32 hmm_dump_sf
Definition: srch.h:846
srch_t * srch_init(kb_t *kb, int32 op_mode)
A wrapper for all adaptation operations in Sphinx 3.X including MLLR and MAP.
Definition: adaptor.h:119
File that implement various structure for fast algorithms. fast_algo_struct implement beam_t...
Wrapper function of speaker adaptation.
Structure that contains all parameters for phoneme lookahead.
Definition: fast_algo_struct.h:173
int(* decode)(void *srch_struct)
Definition: srch.h:638
int32 * ascale
Definition: srch.h:809
int(* eval_beams_lv1)(void *srch_struct)
Definition: srch.h:684
kbcore_t * kbc
Definition: srch.h:837
Definition: word_fsg.h:187
void write_bstsenscr(FILE *fp, int32 numframe, int32 *scale)
int(* hmm_compute_lv1)(void *srch_struct)
Definition: srch.h:683
int(* propagate_graph_wd_lv1)(void *srch_struct)
Definition: srch.h:686
kb core structures, the structure that stores parameters for s3.X search
int(* utt_end)(void *srch_struct)
Definition: srch.h:634
Structure that contains all beam parameters for beam pruning in Viterbi algorithm.
Definition: fast_algo_struct.h:149
int(* compute_heuristic)(void *srch_struct, int32 win_efv)
Definition: srch.h:732
int(* select_active_gmm)(void *srch_struct)
Definition: srch.h:734
glist_t(* nbest_impl)(void *srch_struct, dag_t *dag)
Definition: srch.h:780
int(* rescoring)(void *srch_struct, int32 frmno)
Definition: srch.h:727
FILE * hmmdumpfp
Definition: srch.h:843
char * uttid
Definition: srch.h:797
grp_str_t * grh
Definition: srch.h:794
int(* one_srch_frame_lv1)(void *srch_struct)
Definition: srch.h:680
implementation of search debug mode.
int(* gmm_compute_lv1)(void *srch_struct, float32 *feat, int32 frmno_lp1, int32 frmno_lp2)
Definition: srch.h:670
dag_t * srch_get_dag(srch_t *srch)
The wrapper structure for all statistics in sphinx 3.x.
struct srch_funcs_s srch_funcs_t
pl_t * pl
Definition: srch.h:835
int32 srch_uninit(srch_t *srch)
int32 srch_delete_lm(srch_t *srch, const char *lmname)
int(* propagate_graph_ph_lv2)(void *srch_struct, int32 frmno)
Definition: srch.h:717
int32 srch_utt_end(srch_t *srch)
int32 * segsz
Definition: srch.h:815
implementation of search that does nothing.
glist_t srch_get_hyp(srch_t *srch)
void * nothing
Definition: srch.h:785
srch_funcs_t * funcs
Definition: srch.h:792
char * uttfile
Definition: srch.h:798
Structure that contains all parameter related to 4-Level Fast GMM computation.
Definition: fast_algo_struct.h:256
int32 cache_win
Definition: srch.h:804
Implementation of word-switching tree search.
int(* dump_vithist)(void *srch_struct)
Definition: srch.h:760
int32 senscale
Definition: srch.h:807
int32 ascale_sz
Definition: srch.h:812
int32 exit_id
Definition: srch.h:827
int32 srch_utt_begin(srch_t *srch)
glist_t(* gen_hyp)(void *srch_struct)
Definition: srch.h:744
void reg_result_dump(srch_t *s, int32 id)
Structure to hold all statistics in Sphinx 3.x.
Definition: stat.h:101
Size definition of semantically units. Common for both s3 and s3.X decoder.
glist_t(* bestpath_impl)(void *srch_struct, dag_t *dag)
Definition: srch.h:766
FILE * matchsegfp
Definition: srch.h:841
int(* gmm_compute_lv2)(void *srch_struct, float32 **feat, int32 time)
Definition: srch.h:693
dag_t * dag
Definition: srch.h:829
The global wrapper structure for all variables in 3.X search. We may want to use it for sphinx 3...
#define S3DECODER_EXPORT
Definition: sphinx3_export.h:15
int(* frame_windup)(void *srch_struct, int32 frmno)
Definition: srch.h:731
S3DECODER_EXPORT int32 srch_utt_decode_blk(srch_t *srch, float ***block_feat, int32 block_nfeatvec, int32 *curfrm)
fast_gmm_t * fastgmm
Definition: srch.h:834
S3DECODER_EXPORT int32 srch_set_lm(srch_t *srch, const char *lmname)
int(* delete_lm)(void *srch_struct, const char *lmname)
Definition: srch.h:655
int32 num_frm
Definition: srch.h:813
int32 num_segs
Definition: srch.h:818
ascr_t * ascr
Definition: srch.h:832
int op_mode
Definition: srch.h:795
int(* one_srch_frame_lv2)(void *srch_struct)
Definition: srch.h:703
stat_t * stat
Definition: srch.h:796
int(* propagate_graph_ph_lv1)(void *srch_struct)
Definition: srch.h:685
adapt_am_t * adapt_am
Definition: srch.h:836
int32 cache_win_strt
Definition: srch.h:805
data structure for dag. Adapted from s3_dag.h in s3.5
int(* set_lm)(void *srch_struct, const char *lmname)
Definition: srch.h:643
The language model. All unigrams are read into memory on initialization. Bigrams and trigrams read in...
Wrapper to hold senone scores.
int(* utt_begin)(void *srch_struct)
Definition: srch.h:629
int32 srch_mode_str_to_index(const char *mode_str)
void srch_report(srch_t *srch)
int(* shift_one_cache_frame)(void *srch_struct, int32 win_efv)
Definition: srch.h:733
char * srch_mode_index_to_str(int32 index)
int(* dag_dump)(void *srch_struct, dag_t *dag)
Definition: srch.h:773
int(* init)(kb_t *kb, void *srch_struct)
Definition: srch.h:620
beam_t * beam
Definition: srch.h:833
int(* eval_beams_lv2)(void *srch_struct)
Definition: srch.h:713
int(* propagate_graph_wd_lv2)(void *srch_struct, int32 frmno)
Definition: srch.h:722
FILE * matchfp
Definition: srch.h:840
int32 hmm_dump_ef
Definition: srch.h:847
int(* hmm_compute_lv2)(void *srch_struct, int32 frmno)
Definition: srch.h:708
int(* uninit)(void *srch_struct)
Definition: srch.h:625
int(* add_lm)(void *srch_struct, lm_t *lm, const char *lmname)
Definition: srch.h:649