Hey John, This is correct. So imagine the situation of order 5 and source window 4: <s-4><s-3><s-2><s-1><s0><s+1><s+2><s+3><s+4><t-4><t-3><t-2><t-1><t0> <t0> is aligned to <s0> and your source window is 4: 4 tokens before and after s0, which results in a 14gram in total.
Cheers, Nick On Sat, Aug 1, 2015 at 4:30 PM, John Joseph Morgan < [email protected]> wrote: > I’m trying to run the toy bilingualnplm example with ems. > The ngram order gets computed in experiment.perl on line 1868. > The formula is: > $order + 2 * $source_window + 1 > If $order is 5 and $source_window is 4 this formula gives 14. > Is this correct? > It doesn't seem right. > > John > _______________________________________________ > 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
