Friday, September 16, 2011

an error for Moses when decoding large lattices

Once when I was using Moses to decode a large lattice, I got the following error:
ERROR: Jump length 32 in word lattice exceeds maximum phrase length 20.
ERROR: Increase max-phrase-length to process this lattice.

After looking at the input lattice, I have found that I have a node in the lattice which wanted to jump to the 32nd node after it.

Following the error message I have fixed this problem by setting the -max-phrase-length 35 option for the moses decoder.

No comments: