74#ifndef __S2_FSG_HISTORY_H__
75#define __S2_FSG_HISTORY_H__
79#include <sphinxbase/prim_type.h>
80#include <sphinxbase/fsg_model.h>
83#include "blkarray_list.h"
84#include "fsg_lextree.h"
108#define fsg_hist_entry_fsglink(v) ((v)->fsglink)
109#define fsg_hist_entry_frame(v) ((v)->frame)
110#define fsg_hist_entry_score(v) ((v)->score)
111#define fsg_hist_entry_pred(v) ((v)->pred)
112#define fsg_hist_entry_lc(v) ((v)->lc)
113#define fsg_hist_entry_rc(v) ((v)->rc)
145 blkarray_list_t *entries;
147 glist_t **frame_entries;
156fsg_history_t *fsg_history_init(fsg_model_t *fsg,
dict_t *dict);
158void fsg_history_utt_start(fsg_history_t *h);
160void fsg_history_utt_end(fsg_history_t *h);
171void fsg_history_entry_add (fsg_history_t *h,
186void fsg_history_end_frame (fsg_history_t *h);
190void fsg_history_reset (fsg_history_t *h);
194int32 fsg_history_n_entries (fsg_history_t *h);
200fsg_hist_entry_t *fsg_history_entry_get(fsg_history_t *h, int32
id);
207void fsg_history_set_fsg (fsg_history_t *h, fsg_model_t *fsg,
dict_t *dict);
210void fsg_history_free (fsg_history_t *h);
213void fsg_history_print(fsg_history_t *h,
dict_t *dict);
Operations on dictionary.
int32 frame_idx_t
Type for frame index values.
a structure for a dictionary.