int srec_print_results(multi_srec *recm, int max_choices) { char transcription[MAX_LEN]; bigcostdata cost; srec_get_top_choice_transcription(recm, transcription, MAX_LEN, 1); srec_get_top_choice_score(recm, &cost, SCOREMODE_INCLUDE_SILENCE); log_report("R: %8ld %8ld %s\t%.1f\n", 0, 0, transcription, cost); return 0; }
int CA_FullResultLabel(CA_Recog *hRecog, char *label, int len) { int rc; TRY_CA_EXCEPT rc = srec_get_top_choice_transcription(hRecog->recm, label, len, 1); if (rc != 0) return REJECT_RESULT; return FULL_RESULT; BEG_CATCH_CA_EXCEPT END_CATCH_CA_EXCEPT(hRecog) }