I am using a weighted grammar to distinguish a number of commands from keywords. But the method does not seem to work. My grammar is this:
JSGF V1.0
grammar myGrammar;
public <newGrammar> = /2/ <command> | /1/ <ruleSingle>;
<ruleSingle> = (hello | know | why);
<command> = (/1/ yes |/2/ no | /1/ add space | /0.5/ spell);
The problem is that the recognizer has trouble recognizing the word "no" which has a high weight, but it easily recognizes "know" which has a low weight. What is the problem, do I have to activate weighted recognition somehow?
Thanks,
Foad
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am using a weighted grammar to distinguish a number of commands from keywords. But the method does not seem to work. My grammar is this:
JSGF V1.0
grammar myGrammar;
public <newGrammar> = /2/ <command> | /1/ <ruleSingle>;
<ruleSingle> = (hello | know | why);
<command> = (/1/ yes |/2/ no | /1/ add space | /0.5/ spell);
The problem is that the recognizer has trouble recognizing the word "no" which has a high weight, but it easily recognizes "know" which has a low weight. What is the problem, do I have to activate weighted recognition somehow?
Thanks,
Foad
Hi Foad,
I've observed the same problem. S4 seems to ignore these weights, no matter how high the weights are. Could you file a new bug for the tracker?
-Holger