about "lattice-to-post" and "kaldi::LatticeForwardBackward"

57 views
Skip to first unread message

trung...@gmail.com

unread,
Apr 1, 2022, 11:00:47 PM4/1/22
to kaldi-developers
I want to "export" state posterior from lattice, and it seem "lattice-to-post" is a recommended choice. But I can't understand the implementation of the tool.

As my understanding, Lattice contain both graph cost and AM cost, so why do we need "forward-backward over lattices and computes the posterior probabilities of the arcs" (kaldi::LatticeForwardBackward) instead of get it from lattice weight directly.

(forward-backward algorithm is complicated for me, so I haven't get the idea of LatticeForwardBackward yet)

Thanks

Nickolay Shmyrev

unread,
Apr 2, 2022, 3:20:38 PM4/2/22
to kaldi-developers
Lattice arc weights and lattice arc posterior are different things. Lattice arc posterior is score of all paths passing through the arc divided to score of all paths in lattice. So you need forward-backward to calculate arc posterior value.

For more information you can read section "3.1 Lattice-based Posterior Estimation" from 

POSTERIOR PROBABILITY DECODING, CONFIDENCE ESTIMATION AND SYSTEM COMBINATION 

trung...@gmail.com

unread,
Apr 3, 2022, 9:28:15 PM4/3/22
to kaldi-developers

Thank❤️ you for the helpful information. 
Reply all
Reply to author
Forward
0 new messages