pocketsphinx icon indicating copy to clipboard operation
pocketsphinx copied to clipboard

get_lattice().write() does not include probabilities

Open wiffleball28 opened this issue 6 years ago • 1 comments

I'm looking to get possible guesses for words other then those appearing in the segment list. These look to be contained in the lattice. However, I don't see how those get mapped to probabilities. Shouldn't a probability be contained on the frame line? Thanks.

wiffleball28 avatar Feb 05 '19 14:02 wiffleball28

Unfortunately the Sphinx lattice format doesn't include posterior probabilities, only acoustic scores, and I suppose we can't change it.

If you save the lattice in HTK format (using write_htk()) then you will get them, in the p field for the link definitions.

dhdaines avatar Sep 29 '22 21:09 dhdaines