Menu

the sequence of a grammar (-jsgf)

Help
Terry
2012-02-17
2012-09-22
  • Terry

    Terry - 2012-02-17

    HI, I have a problem.
    I made a grammar like this:

    JSGF V1.0;

    grammar testgrammar;
    public <sentence> = AND WHAT DOES FATHER DO; </sentence>

    According to the official document. The speaker must say "AND WHAT DOES FATHER
    DO". But somehow I got "AND WHAT DOES FATHER" if I said "and what does
    father". Is this normal? I didn't say the correct sequence!

    thanks for the help.

     
  • creative64

    creative64 - 2012-02-20

    Assuming that you are running pocketsphinx, try with -bestpath option set to
    "no". You'll likely get more adherence to the grammar rules this way.

     
  • Nickolay V. Shmyrev

    It also depends on the version. In recent snapshot the grammar should be
    strictly followed.

     
  • Terry

    Terry - 2012-02-21

    Thanks to creative64, I'll try it!

    To nshmyrev: I use pocketsphinx-0.7 which is downloaded from the website, is
    that right?

     
  • Anonymous

    Anonymous - 2012-02-22

    No, 0.7 still does not follow grammar strictly. Today's snapshot does, and
    consequently (maybe also for other reasons) achieves significantly improved
    recognition results with my finite state grammar (-25% WER, -50% for some
    acoustic models).

     
  • Nickolay V. Shmyrev

    Nice it works for you. I really hope to release a new version with current
    improvements soon.

     
  • Anonymous

    Anonymous - 2012-02-28

    Thanks for your awesome work!

     

Log in to post a comment.