Every feature function class can implement 1 or more Evaluate() methods which are described here http://www.statmt.org/moses/?n=Moses.FeatureFunctions Each Evaluate() method is executed in during 1 of these times: 1. During loading of the feature function 2. When the translation rules are being looked up for a particular sentence 3. During search
if you want the whole sentence and the previous hypotheses, then you want to override the Evaluate() method for (2) and (3) On 03/05/2014 12:27, amir haghighi wrote: > Hi > I want to implement a new reordering model (as a feature function) for > moses. I need the whole sentence which moses is translating now, and > the previous phrases which are translated. I am not familiar with > moses code and it seems very complicated to me. I had took a look at > code documentation but I don't know which classes should I study. I > would be very thankful if everyone could help me. > _______________________________________________ > Moses-support mailing list > [email protected] > http://mailman.mit.edu/mailman/listinfo/moses-support > _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
