[asterisk-speech-rec] Speech Score for Individual Tokens
help
john.ogara at mysay.com
Wed Jun 6 07:57:01 MST 2007
I'm having a problem return the above mentioned. I've mailed someone on this
and they mentioned the $$$.score variable which should return the
confidence score of a particular rule in a grammar context. As can be seen
below in the sample XML output from my test gramma this seems to be
returning undefined. My grammar. I hope someone points out the blindingly
obvious and makes me say Doh!! :)
Grammar
=====================================
#ABNF 1.0;
language en-US;
mode voice;
tag-format <lumenvox/1.0>;
root $FullTagGrammar;
$everyone = everyone:"everyone";
$having = having:"having";
$great = great:"great";
$time = time:"time";
$holidays = holidays:"holidays";
$later = later:"later";
$beach = beach:"beach";
$house = house:"house";
$barbeque = barbeque:"barbeque";
$beer = beer|beers:"beer";
$see = see:"see";
$soon = soon:"soon";
$WordsList =
($everyone|$having|$great|$time|$holidays|$later|$beach|$house|$barbeque|$beer|$see|$soon){$
=$$};
$Tag = [$WordsList{$.score = $$$.score}] $WordsList {$.wordslist = $$};
$FullTagGrammar = {$.tagslist =new Array} ($Tag {$.tagslist.push($$)} )<1->
[and $Tag{$.tagslist.push($$)}];
Sample Output
===================================================
<tagslist><item
index=0><score>[Undefined]</score><wordslist>having</wordslist></item><item
index=1><score>[Undefined]</score><wordslist>time</wordslist></item></tagslist>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-speech-rec/attachments/20070606/b70ca788/attachment.htm
More information about the asterisk-speech-rec
mailing list