Menu

Unknown word detection

Help
luys
2020-02-04
2020-02-04
  • luys

    luys - 2020-02-04

    I was wondering if there is any way to try to recognize words whose pronounciation cannot be found in a dictionary.

    For example, I was trying to get alignment for following sentence using JSGF grammary:
    "My name is James."
    here, the word "James" does not in dictionary.

    And this is my grammar file.

    JSGF V1.0;

    grammar word;
    public <wholeutt> = [ sil ] My [ sil ] name [ sil ] is [ sil ] james [ sil ];</wholeutt>

    Then, I get error:
    ERROR: "fsg_search.c", line 141: The word 'James' is missing in the dictionary

    Any ideas how could I resolve this issue in pocketsphinx c++?

    Best Regards,
    Luy.

     

    Last edit: luys 2020-02-04
    • Nickolay V. Shmyrev

      Case matters, James should be lowercase since all our dictionary is lowercase.

      You can not recognize the word if it is missing in the dictionary unfortunately, not with pocketsphinx at least. Some modern recognizers allow vocabulary-free recognition though.

       
  • luys

    luys - 2020-02-04

    I made all words to be lowercase in my program, so it wont be matter, I think.
    If it can't be recognized when there's no the word in dictionary, this problem is impossible to solve using pocietsphinx. Right?

     
    • Nickolay V. Shmyrev

      Depends on what your problem, please elaborate what exactly are you trying to achieve.

       
  • luys

    luys - 2020-02-04

    I'm going to get time alignments per each word using JSGF.
    But if there's other way not using jSGF, let me know, please.

    Thanks

     
    • Nickolay V. Shmyrev

      You can create the dictionary before alignment with g2p library like phonetisaurus and then align.

       
  • luys

    luys - 2020-02-04

    Okay, I see
    Thank you very much.
    I'll inspect about it.

    Thanks again.
    Luy

     

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.