[SRILM User List] Lattice Viterbi decoding

Andreas Stolcke stolcke at speech.sri.com
Tue Dec 1 23:28:20 PST 2009


Felipe Sánchez Martínez wrote:
> Hi all,
>
> I am using SRILM to score a set of translation candidates of a given
> sentence. 
>
> The sentence is divide into chunks, some of them having a fix
> translation and others having different alternatives:
>
> text1 | text2 | text3.1 or text3.2 | text4 | text5.1 or text5.2
>
> As the number of combinations is exponential in the length of the
> sentences I have been trying to use lattice-tool to compute the Viterbi
> path but I am not able to make it work. I am using the following command
> line:
>
> $ lattice-tool -viterbi-decode -in-lattice lattice.pfsg -lm model.lm
> -order 5 -debug 1
>
> but I get exactly the same result with 5, 3 or even 0 n-gram order.
>
> In addition, with the example sentence I am working with I get a
> different path if I use SRILM in the usual way by scoring all possible
> translations of the sentence.
>
> What am I doing wrong? Thank you very much in advance.
>
> PS: I am using srilm 1.5.7
>   
The functionality that was introduced in 1.5.7 to decode a lattice while 
applying a new LM (but without first expanding the lattice) was not 
working for PFSG lattices (as opposed to for HTK lattices).

In the latest beta version this should be working now.  Let me know if 
it works for you.

Andreas




More information about the SRILM-User mailing list