[SRILM User List] How to do 1-best viterbi decoding from lattice?

Andreas Stolcke stolcke at icsi.berkeley.edu
Thu Jan 24 07:46:40 PST 2013

On 1/24/2013 2:24 AM, Meng Chen wrote:
> Hi, I want to check the correctness of lattices in HTK format (SLF). 
> So I need to do the 1-best viterbi decoding from the lattices without 
> loading new LM. Then compare the hypothesis with standard decoder's 
> 1-pass viterbi decoding result. My command is as follows:
> lattice-tool -debug 2 -in-lattice example.slf -read-htk -old-decoding 
> -veterbi-decode
> However, I found that the hypothesis above is different from the 
> standard decoder(eg. HTK). Is the command above right?
Yes, this is the right command.

You should get the same result with or without -old-decoding.

Consider that the scores (AM, LM, word insertion penalty) might be 
weighted differently in your decoder.


More information about the SRILM-User mailing list