Menu

Language Model vs Grammar

Help
2016-10-12
2016-10-25
  • Russ Pitman

    Russ Pitman - 2016-10-12

    Hi all,

    Which do people find best, using a Language Model or a Grammar file? If you specify
    both does pocketshpinx use both?

    I have both but I find that the grammer file is substituting extra words in between/after
    recognised words that does not happen while using the language model.

    example. 'display default' is correctly recognised with the language model
    'display default UP' with the grammar file.

    grammar: <display_cmd> = display (default | up | down) (up | down)+;</display_cmd>

    as 'display' can be: display default, display up, display down, display up/down recurring....

    Thanks

    Russ

     
    • Nickolay V. Shmyrev

      Which do people find best, using a Language Model or a Grammar file?

      From http://cmusphinx.sourceforge.net/wiki/tutoriallm

      Overall, modern speech recognition interfaces tend to be more natural and avoid command-and-control style of previous generation. For that reason most interface designers prefer natural language recognition with statistical language model than old-fashioned VXML grammars.

      Tutorial also lists other considerations to take into account.

      If you specify both does pocketshpinx use both?

      It will use language model which has more priority

      I have both but I find that the grammer file is substituting extra words in between/after
      recognised words that does not happen while using the language model.

      This is because your grammar ensures last UP, it doesn't allow skip. You should have used * instead of + in (up|down)+ to allow to skip last word.

       
  • Russ Pitman

    Russ Pitman - 2016-10-12

    Once again, a big thank you for the info.

    Much appreciated Nickolay

    Russ

     
  • Disha Kaur Phull

    Hi..

    I want to use RNNLM with sphinx..
    Can i get to know how can rnnln language model be adapted to sphinx environment. Any suggestion or help related to it would be very useful..

    Thanks in advance for replying

     
    • Arseniy Gorin

      Arseniy Gorin - 2016-10-25

      Not sure why you are writing this as a comment and not as a new qustion...

      RNNLM can be used for re-scoring N-best list or lattices. Probably some file format conversion will be needed

       

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.