Menu

action tags in pocketsphinx

Help
Anonymous
2012-02-29
2012-09-22
  • Anonymous

    Anonymous - 2012-02-29

    Hi all,

    Does anyone know if PocketSphinx handles action tags defined in the jsgf
    format as Sphinx4 does?

    as in this example:
    http://cmusphinx.sourceforge.net/sphinx4/src/apps/edu/cmu/sphinx/demo/jsapi/t
    ags/README.html

    We are interested in using pocketsphinx because it is recomended for embeded
    applications. But we need action tags.

    Regards,

    --
    Jordi Adell

     
  • Nickolay V. Shmyrev

    Tags are not supported by pocketsphinx yet.

     
  • Jordi Adell

    Jordi Adell - 2012-03-05

    Thank you,
    I have seen the function:

    /**
     * Add a "tag" transition between the given states.
     *
     * A "tag" transition is a null transition with a non-null word ID,
     * which corresponds to a semantic tag or other symbol to be output
     * when this transition is taken.
     *
     * As above, there can be at most one null or tag transition between
     * the given states; duplicates are flagged and only the best prob
     * retained.  Transition probs must be <= 1 (i.e., logprob <= 0).
     *
     * @return 1 if a new transition was added, 0 if the prob of an existing
     * transition was upgraded; -1 if nothing was changed.
     */
    SPHINXBASE_EXPORT
    int32 fsg_model_tag_trans_add(fsg_model_t * fsg, int32 from, int32 to,
                                  int32 logp, int32 wid);
    

    Is there a way to add such a a transition in the FSG file itself, instead of
    by code?

    --
    Jordi

     
  • Nickolay V. Shmyrev

    Is there a way to add such a a transition in the FSG file itself, instead of
    by code?

    This particular function is not used in CMUSphinx. Also this tag is different
    from the one you are looking for.

     
  • Jordi Adell

    Jordi Adell - 2012-03-06

    Ok, look like this is a good reason to move to Sphinx4 in Java.
    However, how much do you it would cost to someone that never looked inside the
    pocketsphinx code to implement this feature in pocketsphinx?. I really want to
    stay with C but I'm not sure if I can put the necessary effort for this
    contribution.

     
  • Nickolay V. Shmyrev

    I think in C it would be painful to implement. The biggest trouble is to have
    a flexible data structures to parse a string against grammar which you need to
    turn into a tree form like in sphinx4. And you need a javascript library.

    You might better have some sort of simple frontend to parse a result than a
    full-feature javascript based tag support.

     
  • Nickolay V. Shmyrev

    And you might also want to look on Olympus project which describes grammars in
    a different way and supports parsing of pocketsphinx results

    http://wiki.speech.cs.cmu.edu/olympus/index.php/RavenClaw

     

Log in to post a comment.