Menu

JSGF parsing

Help
2015-06-17
2015-06-18
  • Yuval Karon

    Yuval Karon - 2015-06-17

    Hello,

    Could you please refer me to information about
    the way pocketsphinx jsgf parser works?
    and the related command-line arguments (apart from "-jsgf")

    In particular:

    • Does it support "import" ?

    • Does it provide partial parses ?
      How does it handle unknown words? do I have to use <null> to support them?</null>

      For example:

      Suppose the rules are:

      <r1> = a b c d e
      <r2> = f g h
      

      and "w1", "w2" etc. do not appear in any rule

      Will the following inputs be recognized?
      and what will the hypothesis contain?

      • a b c
      • c d e
      • a c d
      • b c
      • a b g h
      • w1 a b
      • w1 a w2 b

    Many thanks,
    Yuval

     
    • Nickolay V. Shmyrev

      Does it support "import" ?

      Yes

      How does it handle unknown words?

      No, support for unknown words is not implemented yet

      do I have to use <null> to support them?</null>

      Null corresponds to empty transition and it is not relevant to unknown words.

      a b c
      c d e
      a c d
      b c
      a b g h
      w1 a b
      w1 a w2 b

      None of those will be recognized because grammar describes only two possible sequences.

       
  • Yuval Karon

    Yuval Karon - 2015-06-18

    Thank you.

     

Log in to post a comment.