]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
remove comments
authorBrian West <brian@freeswitch.org>
Thu, 10 Jul 2008 19:42:26 +0000 (19:42 +0000)
committerBrian West <brian@freeswitch.org>
Thu, 10 Jul 2008 19:42:26 +0000 (19:42 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8992 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c

index 897806642cab63e9acbc1abdd3678f0d32a6bbe9..1a2383bcca377cdbaccf6d8e5d74d0b9d5cf411e 100644 (file)
@@ -369,7 +369,7 @@ static switch_status_t pocketsphinx_asr_get_results(switch_asr_handle_t *ah, cha
                conf = ps_get_prob(ps->ps, &ps->uttid);
                lconf = logmath_log_to_ln(ps_get_logmath(ps->ps), conf);
                ps->confidence = lconf - lconf - lconf;
-               /* 0(confident) to 100(not confident) score */ 
+
                if (ps->confidence > 100) {
                        ps->confidence = 100;
                }
@@ -377,8 +377,6 @@ static switch_status_t pocketsphinx_asr_get_results(switch_asr_handle_t *ah, cha
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Recognized: %s, Score: %d\n", ps->hyp, ps->confidence);
                switch_mutex_unlock(ps->flag_mutex); 
 
-               /* ps->score isn't a confidence score. PocketSphinx doesn't support that yet. */
-               
                *xmlstr = switch_mprintf("<interpretation grammar=\"%s\" score=\"%d\">\n"
                                                                 "  <result name=\"%s\">%s</result>\n"
                                                                 "  <input>%s</input>\n"