Home
last modified time | relevance | path

Searched refs:uttid (Results 1 – 25 of 73) sorted by relevance

123

/dports/audio/sphinx3/sphinx3-0.8/src/programs/
H A Dmain_align.c441 strcpy(buf + k + 1, uttid);
643 fprintf(fp, "PH:%s>", uttid);
653 fprintf(fp, "ph:%s>", uttid);
663 fprintf(fp, "PH:%s>", uttid);
696 fprintf(fp, "PH:%s>", uttid);
743 fprintf(fp, "WD:%s>", uttid);
764 fprintf(fp, "WD:%s>", uttid);
785 fprintf(fp, " (%s)\n", uttid);
797 char *uttid)
831 align_start_utt(uttid);
[all …]
H A Dmain_conf.c231 confidence_utt(uttid, inmatchsegfp);
236 confidence_utt(char *uttid, FILE * _confmatchsegfp)
244 E_INFO("Processing %s\n", uttid);
247 uttid);
255 if (strcmp(uttid, s_hypline.seq))
263 sprintf(dagfile, "%s/%s.%s", latdir, uttid, latext);
265 sprintf(dagfile, "%s.%s", uttid, latext);
271 uttid,
288 uttid);
320 matchseg_write(stdout, hyp, uttid, NULL,
[all …]
H A Dmain_dag.c394 decode_utt(char *uttid, FILE * _matchfp, FILE * _matchsegfp) in decode_utt() argument
410 sprintf(dagfile, "%s/%s.%s", latdir, uttid, latext); in decode_utt()
412 sprintf(dagfile, "%s.%s", uttid, latext); in decode_utt()
433 hyp = dag_search(dag, uttid, 1.0, dag->final.node, in decode_utt()
447 log_hypstr(stdout, hyp, uttid, 0, ascr + lscr, dict); in decode_utt()
450 s3dag_log_hypseg(uttid, stdout, hyp, dag->nfrm); in decode_utt()
456 E_ERROR("DAG search (%s) failed\n", uttid); in decode_utt()
462 log_hypstr(_matchfp, hyp, uttid, 0, 0, dict); in decode_utt()
465 s3dag_log_hypseg(uttid, _matchsegfp, hyp, dag->nfrm); in decode_utt()
473 printf("%s: TMR: %5d Frm", uttid, lscr); in decode_utt()
[all …]
H A Dmain_astar.c353 build_output_uttfile(char *buf, const char *dir, const char *uttid, const char *ctlspec)
370 strcpy(buf + k + 1, uttid);
376 utt_astar(void *data, utt_res_t * ur, int32 sf, int32 ef, char *uttid)
392 build_output_uttfile(dagfile, latdir, uttid, ur->uttfile);
397 sprintf(dagfile, "%s.%s", uttid, latext);
422 build_output_uttfile(nbestfile, nbestdir, uttid, ur->uttfile);
425 nbest_search(dag, nbestfile, uttid, 1.0, dict, lmset->cur_lm, fpen);
431 E_ERROR("Dag load (%s) failed\n", uttid);
437 printf("%s: TMR: %5d Frm", uttid, nfrm);
H A Dmain_dp.c120 static char uttid[256];
399 …ef, %d hyp, %d err, %.2f%%, %d sub, %d ins, %d del; %d corr, %.2f%%>>\n", uttid, nref - 1, nhyp - …
416 …fprintf(stderr, "%s %d ref, %d hyp, %d correct, %d errors, %d sub, %d ins, %d del\n", uttid, nref …
441 uttid[0] = '\0';
452 strcpy(uttid, word + 1);
509 if (strcmp_nocase(word, uttid) != 0)
510 E_ERROR("Uttid mismatch: Ref: %s, Hyp: %s\n", uttid, word);
525 if (strcmp_nocase(word, uttid) != 0)
526 E_ERROR("Uttid mismatch: %s(ref), %s(hyp)\n", uttid, word);
543 E_ERROR("%s: (null) hypothesis???\n", uttid);
[all …]
/dports/audio/sphinx3/sphinx3-0.8/src/libs3decoder/libcommon/
H A Dcorpus.c235 sep_tailid(char *line, char *uttid) in sep_tailid() argument
240 uttid[0] = '\0'; in sep_tailid()
257 strcpy(uttid, line + i + 1); in sep_tailid()
312 id = ckd_salloc(uttid); in corpus_load_tailid()
401 char *uttid) in ctl_read_entry() argument
423 strcpy(uttid, base); in ctl_read_entry()
426 k = strlen(uttid); in ctl_read_entry()
445 char uttfile[16384], uttid[4096];
544 char uttfile[16384], uttid[4096]; in ctl_process() local
689 char uttid[4096]; in ctl_process_utt() local
[all …]
H A Dmisc.c127 ctlfile_next(FILE * fp, char *ctlspec, int32 * sf, int32 * ef, char *uttid) in ctlfile_next() argument
143 sscanf(line, "%s %d %d %s", ctlspec, sf, ef, uttid)) > 0)) in ctlfile_next()
151 strcpy(uttid, base); in ctlfile_next()
162 sprintf(uttid, "%s_%d_%d", base, *sf, *ef); in ctlfile_next()
314 nbestfile_load(char *dir, char *uttid, srch_hyp_t *** hyplist_out) in nbestfile_load() argument
324 if ((!dir) || (!uttid) || (!hyplist_out)) { in nbestfile_load()
329 sprintf(filename, "%s/%s.nbest", dir, uttid); in nbestfile_load()
/dports/audio/pocketsphinx/pocketsphinx-0.8/test/unit/
H A Dtest_lm_read.c11 char const *uttid; in main() local
33 hyp = ps_get_hyp(ps, &score, &uttid); in main()
34 printf("%s: %s (%d)\n", uttid, hyp, score); in main()
50 hyp = ps_get_hyp(ps, &score, &uttid); in main()
51 printf("%s: %s (%d)\n", uttid, hyp, score); in main()
63 hyp = ps_get_hyp(ps, &score, &uttid); in main()
65 printf("%s: %s (%d)\n", uttid, hyp, score); in main()
82 hyp = ps_get_hyp(ps, &score, &uttid); in main()
83 printf("%s: %s (%d)\n", uttid, hyp, score); in main()
92 hyp = ps_get_hyp(ps, &score, &uttid); in main()
[all …]
H A Dps_test.c37 char const *uttid; in ps_decoder_test() local
46 hyp = ps_get_hyp(ps, &score, &uttid); in ps_decoder_test()
47 prob = ps_get_prob(ps, &uttid); in ps_decoder_test()
48 printf("%s (%s): %s (%d, %d)\n", sname, uttid, hyp, score, prob); in ps_decoder_test()
71 hyp = ps_get_hyp(ps, &score, &uttid); in ps_decoder_test()
72 prob = ps_get_prob(ps, &uttid); in ps_decoder_test()
73 printf("%s (%s): %s (%d, %d)\n", sname, uttid, hyp, score, prob); in ps_decoder_test()
74 TEST_EQUAL(0, strcmp(uttid, "000000000")); in ps_decoder_test()
104 hyp = ps_get_hyp(ps, &score, &uttid); in ps_decoder_test()
105 prob = ps_get_prob(ps, &uttid); in ps_decoder_test()
[all …]
H A Dtest_jsgf.c26 char const *hyp, *uttid;
117 hyp = ps_get_hyp(ps, &score, &uttid);
118 prob = ps_get_prob(ps, &uttid);
119 printf("%s: %s (%d, %d)\n", uttid, hyp, score, prob);
136 hyp = ps_get_hyp(ps, &score, &uttid);
137 prob = ps_get_prob(ps, &uttid);
138 printf("%s: %s (%d, %d)\n", uttid, hyp, score, prob);
H A Dtest_mllr.c16 char const *uttid;
31 hyp = ps_get_hyp(ps, &score, &uttid);
32 printf("FWDFLAT (%s): %s (%d)\n", uttid, hyp, score);
H A Dtest_ps_nbest.c17 char const *uttid;
34 hyp = ps_get_hyp(ps, &score, &uttid);
35 printf("BESTPATH (%s): %s (%d)\n", uttid, hyp, score);
/dports/audio/pocketsphinx/pocketsphinx-0.8/src/programs/
H A Dbatch.c354 char *uttpath = ckd_salloc(uttid); in build_outdirs()
356 path2dirname(uttid, uttpath); in build_outdirs()
387 if (uttid == NULL) uttid = file; in process_ctl_line()
396 build_outdirs(config, uttid); in process_ctl_line()
400 ps_decode_senscr(ps, infh, uttid); in process_ctl_line()
415 ps_decode_raw(ps, infh, uttid, ef); in process_ctl_line()
428 ps_start_utt(ps, uttid); in process_ctl_line()
553 show = dupid = ckd_salloc(uttid ? uttid : "(null)"); in write_ctm()
720 char const *hyp, *file, *uttid; in process_ctl() local
724 uttid = NULL; in process_ctl()
[all …]
H A Dcontinuous.c135 const char* uttid; in recognize_from_file() local
198 hyp = ps_get_hyp(ps, NULL, &uttid); in recognize_from_file()
199 printf("%s: %s\n", uttid, hyp); in recognize_from_file()
240 char const *uttid; in recognize_from_microphone() local
322 hyp = ps_get_hyp(ps, NULL, &uttid); in recognize_from_microphone()
323 printf("%s: %s\n", uttid, hyp); in recognize_from_microphone()
/dports/audio/pocketsphinx/pocketsphinx-0.8/swig/
H A Dpocketsphinx.i19 char *uttid; member
46 char *uttid; member
66 Hypothesis(char const *hypstr, char const *uttid, int best_score) { in Hypothesis() argument
70 if (uttid) in Hypothesis()
71 h->uttid = ckd_salloc(uttid); in Hypothesis()
78 ckd_free($self->uttid); in ~Hypothesis()
176 int startUtt(char const *uttid) { in startUtt() argument
177 return ps_start_utt($self, uttid); in startUtt()
192 char const *hyp, *uttid; in getHyp() local
194 hyp = ps_get_hyp($self, &best_score, &uttid); in getHyp()
[all …]
/dports/audio/sphinx3/sphinx3-0.8/src/libs3decoder/libsearch/
H A Dsrch_output.c105 fprintf(fp, "(%s)\n", uttid); in match_write()
111 matchseg_write(FILE * fp, glist_t hyp, char *uttid, char *hdr, in matchseg_write() argument
144 fprintf(fp, "%s%s S %d T %d A %d L %d", (hdr ? hdr : ""), uttid, in matchseg_write()
207 lbl, uttid, dict_wordstr(dict, h->id), h->sf, in match_detailed()
226 fprintf(fp, "%s:%s> %20s %5s %5s %12d %10d\n", LBL, uttid, in match_detailed()
234 log_hypstr(FILE * fp, srch_hyp_t * hypptr, char *uttid, int32 exact, in log_hypstr() argument
262 fprintf(fp, " (%s %d)\n", uttid, scr); in log_hypstr()
264 fprintf(fp, " (%s)\n", uttid); in log_hypstr()
283 log_hypseg(char *uttid, FILE * fp, /* Out: output file */ in log_hypseg() argument
373 uttid, h->word, h->sf, h->ef, h->ascr, h->lscr, in log_hyp_detailed()
[all …]
H A Dsrch.c529 E_INFOCONT("\nBacktrace(%s)\n", s->uttid);
539 matchseg_write(s->matchsegfp, hyp, s->uttid, NULL,
545 matchseg_write(err_get_logfp(), hyp, s->uttid, "FWDXCT: ",
573 (s->uttfile ? s->uttfile : s->uttid), s->uttid);
588 (s->uttfile ? s->uttfile : s->uttid), s->uttid);
612 match_detailed(stdout, rhyp, s->uttid, "BP",
616 match_write(s->matchfp, rhyp, s->uttid, kbcore_dict(s->kbc), NULL);
618 matchseg_write(s->matchsegfp, rhyp, s->uttid, NULL,
622 match_write(err_get_logfp(), rhyp, s->uttid,
624 matchseg_write(err_get_logfp(), rhyp, s->uttid, "BSTXCT: ",
[all …]
/dports/audio/sphinx3/sphinx3-0.8/include/
H A Dsrch_output.h93 char* uttid, /**< Utterance id */
102 char *uttid, /**< Utterance ID of the file */
120 char* uttid, /**< The utterance ID */
152 char *uttid, /**< An utterance ID */
162 char *uttid, /**< An utternace ID */
176 void log_hypseg (char *uttid, /**< Input; uttid */
H A Dcorpus.h236 char *uttid /**< Out: Utterance ID (generated from uttfile/sf/ef
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),/**< A function pointer th…
308 const char *uttid /**< In: Utterance ID (derived from the control file */
/dports/audio/sphinx3/sphinx3-0.8/python/
H A D_sphinx3module.c195 char *hypstr, *uttid; in sphinx3_get_hypothesis() local
198 s3_decode_hypothesis(&decoder, &uttid, &hypstr, &hypsegs); in sphinx3_get_hypothesis()
237 char *uttid = NULL; in sphinx3_begin_utt() local
239 if (!PyArg_ParseTuple(args, "|s", &uttid)) in sphinx3_begin_utt()
242 if (s3_decode_begin_utt(&decoder, uttid) < 0) { in sphinx3_begin_utt()
332 char *uttid = NULL; in sphinx3_decode_raw() local
334 if (!PyArg_ParseTuple(args, "O|s", &str, &uttid)) in sphinx3_decode_raw()
346 s3_decode_begin_utt(&decoder, uttid); in sphinx3_decode_raw()
375 char *uttid = NULL; in sphinx3_decode_cep_file() local
379 if (!PyArg_ParseTuple(args, "s|iis", &filename, &sf, &ef, &uttid)) in sphinx3_decode_cep_file()
[all …]
/dports/audio/sphinx3/sphinx3-0.8/src/libs3decoder/libAPI/
H A Dutt.c184 utt_decode(void *data, utt_res_t * ur, int32 sf, int32 ef, char *uttid) in utt_decode() argument
195 E_INFO("Processing: %s\n", uttid); in utt_decode()
200 kb_set_uttid(uttid, ur->uttfile, kb); in utt_decode()
250 s->uttid = kb->uttid; in utt_decode()
283 s->uttid = kb->uttid; in utt_decode_block()
H A Ds3_decode.c247 _decode->uttid = NULL; in s3_decode_init()
281 if (_decode->uttid != NULL) { in s3_decode_close()
282 ckd_free(_decode->uttid); in s3_decode_close()
283 _decode->uttid = NULL; in s3_decode_close()
393 *_uttid = _decode->uttid; in s3_decode_hypothesis()
476 if (_decode->uttid != NULL) { in s3_decode_set_uttid()
477 ckd_free(_decode->uttid); in s3_decode_set_uttid()
478 _decode->uttid = NULL; in s3_decode_set_uttid()
501 _decode->uttid = local_uttid; in s3_decode_set_uttid()
503 kb_set_uttid(_decode->uttid, NULL, &(_decode->kb)); in s3_decode_set_uttid()
/dports/audio/pocketsphinx/pocketsphinx-0.8/src/gst-plugin/
H A Dlivedemo.py59 def asr_partial_result(self, asr, text, uttid):
63 struct.set_value('uttid', uttid)
66 def asr_result(self, asr, text, uttid):
70 struct.set_value('uttid', uttid)
83 def partial_result(self, hyp, uttid):
95 def final_result(self, hyp, uttid):
/dports/audio/pocketsphinx/pocketsphinx-0.8/src/libpocketsphinx/
H A Dpocketsphinx.c338 ckd_free(ps->uttid);
346 return ps->uttid;
585 ps_start_utt(ps, uttid);
633 if (uttid) { in remove_dsn()
634 ckd_free(ps->uttid); in remove_dsn()
635 ps->uttid = ckd_salloc(uttid); in remove_dsn()
639 ckd_free(ps->uttid);
731 ps_start_utt(ps, uttid);
846 char const *uttid, *hyp; in test_file_dsn()
878 *out_uttid = ps->uttid;
[all …]
/dports/audio/sphinxbase/sphinxbase-0.8/src/sphinx_adtools/
H A Dcont_fileseg.c178 int32 uttid, uttlen, starttime, siltime, sps, debug, writeseg, rawmode; in main() local
445 uttid = 0; in main()
462 uttid, (double) starttime / (double) sps, in main()
470 uttid++; in main()
484 uttid, (double) starttime / (double) sps, in main()
492 uttid++; in main()
511 sprintf(segfile, "%08d.raw", uttid); in main()

123