101 #ifndef _S3_CORPUS_H_ 102 #define _S3_CORPUS_H_ 106 #include <hash_table.h> 141 #define utt_res_set_uttfile(ur,name) ur->uttfile=name 142 #define utt_res_set_lmname(ur,name) ur->lmname=name 143 #define utt_res_set_fsgname(ur,name) ur->fsgname=name 144 #define utt_res_set_regmatname(ur,name) ur->regmatname=name 145 #define utt_res_set_cb2mllrname(ur,name) ur->cb2mllrname=name 205 int32 (*validate)(
char *str),
206 int32 (*dup_resolve)(
char *s1,
char *s2));
212 int32 (*validate)(
char *str),
213 int32 (*dup_resolve)(
char *s1,
char *s2));
252 const char *ctllmfile,
253 const char *ctlmllrfile,
256 void (*func) (
void *kb,
utt_res_t *ur, int32 sf, int32 ef,
char *uttid),
275 void (*func) (
void *kb,
utt_res_t *ur, int32 sf, int32 ef,
char *uttid),
hash_table_t * ht
Definition: corpus.h:170
corpus_t * corpus_load_tailid(const char *file, int32(*validate)(char *str), int32(*dup_resolve)(char *s1, char *s2))
void free_utt_res(utt_res_t *ur)
S3DECODER_EXPORT ptmr_t ctl_process(const char *ctlfile, const char *ctllmfile, const char *ctlmllrfile, int32 nskip, int32 count, void(*func)(void *kb, utt_res_t *ur, int32 sf, int32 ef, char *uttid), void *kb)
char * cb2mllrname
Definition: corpus.h:137
int32 ctl_read_entry(FILE *fp, char *uttfile, int32 *sf, int32 *ef, char *uttid)
void ctl_infile(char *file, const char *dir, const char *ext, const char *utt)
char * regmatname
Definition: corpus.h:135
char ** str
Definition: corpus.h:172
void ctl_outfile(char *file, const char *dir, const char *ext, const char *utt, const char *uttid)
Size definition of semantically units. Common for both s3 and s3.X decoder.
#define S3DECODER_EXPORT
Definition: sphinx3_export.h:15
A structure to store utterance-based resource Assume that most resource are string pointers...
Definition: corpus.h:127
S3DECODER_EXPORT ptmr_t ctl_process_utt(const char *uttfile, int32 count, void(*func)(void *kb, utt_res_t *ur, int32 sf, int32 ef, char *uttid), void *kb)
Structure for a corpus: essentially a set of strings each associated with a unique ID...
Definition: corpus.h:169
corpus_t * corpus_load_headid(const char *file, int32(*validate)(char *str), int32(*dup_resolve)(char *s1, char *s2))
char * lmname
Definition: corpus.h:130
char * uttfile
Definition: corpus.h:129
char * fsgname
Definition: corpus.h:132
utt_res_t * new_utt_res(void)
int32 n
Definition: corpus.h:171
char * corpus_lookup(corpus_t *corp, const char *id)
void report_utt_res(utt_res_t *ur)