You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When src.size() is zero, inf is added to *tot_len_ratio. This, in turn, sets mean_srclen_multiplier to inf (fast_align.cc#L291), and subsequently log_prob to inf.
I think this can be avoided by adding a continue; statement when src.size() is zero.
Hope this helps!
The text was updated successfully, but these errors were encountered:
zaemyung
pushed a commit
to zaemyung/fast_align
that referenced
this issue
Jan 10, 2019
Thanks for creating and maintaining this useful tool!
I'd like to report a bug in the following lines:
fast_align.cc#L261~L264
.fast_align/src/fast_align.cc
Line 264 in 7c2bbca
When
src.size()
is zero,inf
is added to*tot_len_ratio
. This, in turn, setsmean_srclen_multiplier
toinf
(fast_align.cc#L291), and subsequentlylog_prob
toinf
.I think this can be avoided by adding a
continue;
statement whensrc.size()
is zero.Hope this helps!
The text was updated successfully, but these errors were encountered: