Thanks, looks good. Does cur_hypo.GetCurrSourceWordsRange() still make sense in the context of lattices?
On 30.06.2015 18:28, Hieu Hoang wrote: > cur_hypo.GetTranslationOption().GetInputPath() > > i hope > > Hieu Hoang > Researcher > New York University, Abu Dhabi > http://www.hoang.co.uk/hieu > > On 30 June 2015 at 19:30, Marcin Junczys-Dowmunt <junc...@amu.edu.pl > <mailto:junc...@amu.edu.pl>> wrote: > > Hi, > is there a way to find the current source phrase (input path) for > lattices in the following feature function hook? > > FFState* EvaluateWhenApplied( > const Hypothesis& cur_hypo, > const FFState* prev_state, > ScoreComponentCollection* accumulator) > > Specifically I want to use the OSM with lattice input, but it is only > written for sentence input. If I am not very wrong it should not > easy to > modify if only I can get the plain source word range from a lattice. > Thanks, > Marcin > _______________________________________________ > Moses-support mailing list > Moses-support@mit.edu <mailto:Moses-support@mit.edu> > http://mailman.mit.edu/mailman/listinfo/moses-support > > _______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support