redpony/cdec

index not correct in fast_align.cc when computing emp_feat

Opened this issue · 0 comments

When computing emp_feat in fast_align.cc(line 205), I think index j should be j+1 since j start from 0.
emp_feat += DiagonalAlignment::Feature(j, i, trg.size(), src.size()) * p;

The other parts pass j+1 instead of j.