Menu

Getting the scores from Pocket Sphinx in .txt file

Help
2016-04-10
2016-04-12
  • Senjam Shantirani

    Tried to print in a text file the scores Normalizer P(O) and Joint P(O,S) from Pocketsphinx_continuous from the ps_lattice.c but error keep coming while recompiling the PS.

    INFO: ps_lattice.c(1384): Normalizer P(O) = alpha(:49:96) = -102150
    INFO: ps_lattice.c(1441): Joint P(O,S) = -139160 P(S|O) = -37010
    INFO: ngram_search.c(875): bestpath 0.00 CPU 0.000 xRT
    INFO: ngram_search.c(878): bestpath 0.00 wall 0.002 xRT
    FIVE

    Is there any other way to get the scores in text file?

     
    • Nickolay V. Shmyrev

      It is not clear what are you asking, you need to provide more details.

       
  • Senjam Shantirani

    In the terminal, when we execute pocketsphinx_continuous, the recognised word gets displayed as below along with some score Normalizer P(O), Joint P(O,S) and P(S|O) .

    INFO: ps_lattice.c(1384): Normalizer P(O) = alpha(:49:96) = -102150
    INFO: ps_lattice.c(1441): Joint P(O,S) = -139160 P(S|O) = -37010
    INFO: ngram_search.c(875): bestpath 0.00 CPU 0.000 xRT
    INFO: ngram_search.c(878): bestpath 0.00 wall 0.002 xRT
    FIVE

    Where FIVE is the recognised word.

    I want to extract those scores Normalizer P(O), Joint P(O,S) and P(S|O) in a text file instead of getting them display in terminal as I need them for some calculation.

    Please help me if we can extract these scores in a text file while executing, using some command.

     

    Last edit: Senjam Shantirani 2016-04-11
    • Nickolay V. Shmyrev

      You can parse the output with a script, however, it is better to write the code to calculate what you need using pocketsphinx API instead of command-line tool.

       
  • Senjam Shantirani

    Ok, thank you for the suggestion. But I have liitle exposure on implemention on API and all. Can you please suggest a way or link for starting learning implemention of API.

     

Log in to post a comment.