scores mean nothing yet

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8950 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-07-08 23:34:01 +00:00
parent 1f830b03e9
commit b3b334c5eb
1 changed files with 5 additions and 4 deletions

View File

@ -332,15 +332,16 @@ static switch_status_t pocketsphinx_asr_get_results(switch_asr_handle_t *ah, cha
if (switch_test_flag(ps, PSFLAG_HAS_TEXT)) {
switch_mutex_lock(ps->flag_mutex);
switch_clear_flag(ps, PSFLAG_HAS_TEXT);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Recognized: %s, Score: %d\n", ps->hyp, ps->score);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Recognized: %s, Score: 300\n", ps->hyp);
switch_mutex_unlock(ps->flag_mutex);
*xmlstr = switch_mprintf("<interpretation grammar=\"%s\" score=\"%d\">\n"
/* ps->score isn't a confidence score. PocketSphinx doesn't support that yet. */
*xmlstr = switch_mprintf("<interpretation grammar=\"%s\" score=\"300\">\n"
" <result name=\"%s\">%s</result>\n"
" <input>%s</input>\n"
"</interpretation>",
ps->grammar, ps->score,
ps->grammar,
"match",
ps->hyp,
ps->hyp