Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Voicetools » N-Best question(how can I set a number of hypoteses returned from ASR engine)
N-Best question [message #637720] Mon, 08 November 2010 14:57 Go to next message
mzix is currently offline mzixFriend
Messages: 3
Registered: October 2010
Junior Member
Hi,

how can I set a number of hypoteses returned from ASR engine.
Is it possible to do in "Question" control?

Regards,

Peter
Re: N-Best question [message #637980 is a reply to message #637720] Tue, 09 November 2010 14:17 Go to previous messageGo to next message
mzix is currently offline mzixFriend
Messages: 3
Registered: October 2010
Junior Member
hey, was that question too simple or too comlicated?
where else could i ask it?
Re: N-Best question [message #638061 is a reply to message #637980] Tue, 09 November 2010 19:35 Go to previous messageGo to next message
Randy Childers is currently offline Randy ChildersFriend
Messages: 121
Registered: July 2009
Senior Member
Hi Peter. No, it was just right -- I'm just trying to get all of the
information together for a solid answer. What I can tell you now is
that there isn't a way through the current UI to manipulate the N-Best
responses. There's a possibility of another route for you to take on
this, which is what I'm researching. I hope to have something for you
soon.

Randy


In <ibbkup$omo$1@news.eclipse.org> mzix wrote:
> hey, was that question too simple or too comlicated?
> where else could i ask it?
>
>
Re: N-Best question [message #638316 is a reply to message #637720] Wed, 10 November 2010 19:39 Go to previous messageGo to next message
Randy Childers is currently offline Randy ChildersFriend
Messages: 121
Registered: July 2009
Senior Member
Hi Peter. There is currently no way to change the number of responses
in the N-Best list -- this number is the default value for whichever
platform you're using.

However, you can still access this response in the LastResult array.
LastResult is a top-level object, similiar to Variables or Platform.
Here's an example script that prints all of the potentially available (
this is platform-dependent) LastResult data to the logfile:

Log.info("LastResult.length: " + LastResult.length);
Log.info("LastResult.marktime: " + LastResult.marktime);
Log.info("LastResult.markname: " + LastResult.markname);
for (var i = 0; i < LastResult.length; i++) {
Log.info("LastResult[" + i + "].confidence: " + LastResult[i].
confidence);
Log.info("LastResult[" + i + "].utterance: " + LastResult[i].utterance);
Log.info("LastResult[" + i + "].inputmode: " + LastResult[i].inputmode);
Log.info("LastResult[" + i + "].interpretation: " + LastResult[i].
interpretation);
}

If you just need the first LastResult response (element 0), this can be
accessed throught the UI via the LastResult business object.

I hope this helps, and I apologize for my delay in responding--
Randy


In <ib92sq$itd$1@news.eclipse.org> mzix wrote:
> Hi,
>
> how can I set a number of hypoteses returned from ASR engine.
> Is it possible to do in "Question" control?
>
> Regards,
>
> Peter
>
Re: N-Best question [message #638343 is a reply to message #638316] Wed, 10 November 2010 22:08 Go to previous messageGo to next message
mzix is currently offline mzixFriend
Messages: 3
Registered: October 2010
Junior Member
Randy,
thanks for that nice quick hack!

Where could I get more info about LastResult object and other business objects?

Just curious: why don't you implement a GUI-control for n-best functionality? No use??
Re: N-Best question [message #638602 is a reply to message #638343] Thu, 11 November 2010 18:23 Go to previous message
Randy Childers is currently offline Randy ChildersFriend
Messages: 121
Registered: July 2009
Senior Member
You're welcome, Peter. I wish I could point you to an accessible,
authoritative source to answer your question, but the only authoritative
source I know of is the source code itself, which is freely available
from the VTP. We're working on fixing this in the documentation, but
that's not ready for prime-time just yet.

As for why the n-best support isn't in the UI, I can tell you that it is
on the future features list. It's competing with a lot of other would-
be features, and so far it's not made the cut -- though I have no doubt
that it will eventually.

Thanks and good luck,
Randy


In <ibf4u1$b4o$1@news.eclipse.org> mzix wrote:
> Randy,
> thanks for that nice quick hack!
>
> Where could I get more info about LastResult object and other business
> objects?
>
> Just curious: why don't you implement a GUI-control for n-best
> functionality? No use??
>
Previous Topic:Play Recording variable
Next Topic:Calling web services made in eclipse through javascript
Goto Forum:
  


Current Time: Tue Apr 23 13:18:51 GMT 2024

Powered by FUDForum. Page generated in 0.04679 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top