cdec
cdec copied to clipboard
index not correct in fast_align.cc when computing emp_feat
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.