Are lattice-arc-post and lattice-to-post basically the same?

117 views
Skip to first unread message

Boqing Liu

unread,
Sep 10, 2020, 11:52:58 PM9/10/20
to kaldi-help
Hi all,

I want to compute the confidence of an utterance, and I am a little bit confused about the two binaries: lattice-arc-post and lattice-to-post.

In terms of lattice-to-post, I could use lattice-to-post | post-to-phone-post | ali-to-phones get-post-on-ali to get phone-level posteriors of the best path, the method used to compute posterior is forward-backward algorithm.

In terms of lattice-arc-post, I could use lattice-1best | lattice-align-phones | lattice-arc-post to get phone-level posteriors of the best path, the method used to compute posterior is also forward-backward algorithm.

I know the lattice-to-post's input is Lattice, while lattice-arc-post's input is CompactLattice.  so what's the difference between the two binaries and under what circumstances should I use the binaries lattice-arc-post and lattice-to-post? Thank you very much!

best wishes,
Boqing

Daniel Povey

unread,
Sep 11, 2020, 12:47:09 AM9/11/20
to kaldi-help
The main difference is in how much structure they expose; lattice-to-post gives you posteriors of transition-ids on each frame while lattice-arc-post gives you information about whole arcs, which might have word or phone info depending where the lattice came from.
Lattice and CompactLattice can actually be inter-converted when reading.

--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/c568aa34-6570-40a1-b0f2-6f96f3cba864o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages