Hi Graham A quick inspection of the code suggests that all should be well if you roll back to a version prior to the clean-up of mert-moses.perl in revision 4149.
I think the fix would be to bring the ShowWeights() function in line with OutputNBest() (both are in moses-cmd/src). The latter checks the number of input scores and outputs an 'l' accordingly for each input score, whilst the former does not. Can anyone confirm this - I'm not that familiar with lattice input? cheers - Barry On Monday 29 August 2011 16:35, Graham Neubig wrote: > Hi, > > I am trying to run mert-moses.pl on lattice input (using the latest > version from SVN) and am getting the following error after the first > iteration finishes: > > --- > > The decoder returns the scores in this order: d d d d d d d lm w I tm > tm tm tm tm > Mismatched lambdas. Decoder returned d d d d d d d lm w I tm tm tm tm > tm, we expected d d d d d d d lm w tm tm tm tm tm tm at > /home/neubig/usr/bin/scripts-20110829-0448/training/mert-moses.pl line > 959 > > --- > > Looking at the code quickly, it looks like the feature for the input > weight is being registered as a PhraseDictionaryFeature, which is > causing it to return "tm" instead of the expected "I," which is > causing the sanity check in mert-moses.pl to fail. > > Graham > _______________________________________________ > Moses-support mailing list > [email protected] > http://mailman.mit.edu/mailman/listinfo/moses-support -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
