Menu

Weighted Grammars

Help
2007-06-25
2012-09-22
  • SmillingMan

    SmillingMan - 2007-06-25

    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

     
    • Holger Brandl

      Holger Brandl - 2007-07-03

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.