Does pocketsphinx provide any kind of confidence scores when using in grammar mode? If so, which functions are relevant, and can I get it with commanld line tool pocketsphinx_continues.
Does pocketsphinx provide word lattice/n-best/partial hypothesys in grammar mode? If so, which functions are relevant, and can I get it with commanld line tool pocketsphinx_continues.
Last edit: Oren G. 2016-11-19
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does pocketsphinx provide any kind of confidence scores when using in grammar mode? If so, which functions are relevant, and can I get it with commanld line tool pocketsphinx_continues.
Yes, it does. The function is ps_seg_prob, in pocketsphinx_continuous you can add it an option -time yes, it will print the times and confidences. The confidence is always 1.0 in grammar mode though, it is not an easy task to implement confidence for grammars.
Does pocketsphinx provide word lattice/n-best/partial hypothesys in grammar mode? If so, which functions are relevant, and can I get it with commanld line tool pocketsphinx_continues.
Partial hypothesis is provided with ps_hyp, n-best with ps_nbest, lattice with ps_lattice. It does not work for grammar mode.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does pocketsphinx provide any kind of confidence scores when using in grammar mode? If so, which functions are relevant, and can I get it with commanld line tool pocketsphinx_continues.
Does pocketsphinx provide word lattice/n-best/partial hypothesys in grammar mode? If so, which functions are relevant, and can I get it with commanld line tool pocketsphinx_continues.
Last edit: Oren G. 2016-11-19
Hi Oren
Yes, it does. The function is ps_seg_prob, in pocketsphinx_continuous you can add it an option
-time yes
, it will print the times and confidences. The confidence is always 1.0 in grammar mode though, it is not an easy task to implement confidence for grammars.Partial hypothesis is provided with ps_hyp, n-best with ps_nbest, lattice with ps_lattice. It does not work for grammar mode.