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.
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) .
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
It is not clear what are you asking, you need to provide more details.
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
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.
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.
http://cmusphinx.sourceforge.net/wiki/tutorialpocketsphinx