Decoder, aligner, and model optimizer for statistical machine translation and other structured prediction models based on (mostly) context-free formalisms
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;
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.