Menu

LM-Unigram, bigram trigram

Help
2016-05-30
2016-05-30
  • Senjam Shantirani

    Using the online LM tool, I get the language model below, with
    ngram 1 (unigram)
    ngram 2(bigram)
    ngram 3(trigram)

    How do I seperately execute the pocketsphinx decoder using unigram, bigram and trigram?
    I wish to get the result for separate case.

    Also, if I only select the following in the .lm and execute, I think it will give result based on the unigram LM only?

    \data\
    ngram 1=5
    
    \1-grams:
    -0.7782 </s> -0.3010
    -0.7782 <s> -0.2218
    -1.2553 ONE -0.2218
    -1.2553 THREE -0.2218
    -1.2553 TWO -0.2218
    

    Please advice.
    shanti

     

    Last edit: Nickolay V. Shmyrev 2016-05-30
    • Nickolay V. Shmyrev

      How do I seperately execute the pocketsphinx decoder using unigram, bigram and trigram?

      You need to create a separate unigram, bigram and trigram models. online lmtool is not the great thing for that, but you can use srilm.

      Also, if I only select the following in the .lm and execute, I think it will give result based on the unigram LM only?

      It is not formatted correctly, misses \end mark. With \end it will decode properly

       

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.