• Idefisk
  • Tools
  • Tutorials
  • Reviews
  • VoIP Providers
  • Archives
ZOIPER softphone
AsteriskGuru Archives
Mailing List Archives
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[asterisk-speech-rec] Speech Score for Individual Tokens

 
   AsteriskGuru Archives Forum Index -> Asterisk-Speech-Rec
View previous topic :: View next topic  
Author Message
john.ogara at mysay.com
Guest





PostPosted: Wed Jun 06, 2007 4:26 pm    Post subject: [asterisk-speech-rec] Speech Score for Individual Tokens

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>
Back to top
Display posts from previous:   
   AsteriskGuru Archives Forum Index -> Asterisk-Speech-Rec All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™