예제 #1
0
int CA_FullResultScore(CA_Recog *hRecog, int *score, int do_incsil)
{
  bigcostdata cost;
  
  srec_get_top_choice_score(hRecog->recm, &cost, do_incsil);
  
  *score = cost;
  return 0;
}
예제 #2
0
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;
}