diff options
author | Michael Denkowski <mdenkows@cs.cmu.edu> | 2014-03-03 08:02:02 -0800 |
---|---|---|
committer | Michael Denkowski <mdenkows@cs.cmu.edu> | 2014-03-03 08:02:02 -0800 |
commit | 18aa808143ab06da361a557350f6b3dd964717ce (patch) | |
tree | f0c179494d93b0d4bad25d9e2f9c0a3c53c0387b /python/cdec/sa/rulefactory.pxi | |
parent | 825d766c681827c83db9b473cb750a911644f6fd (diff) |
typo fix
Diffstat (limited to 'python/cdec/sa/rulefactory.pxi')
-rw-r--r-- | python/cdec/sa/rulefactory.pxi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/cdec/sa/rulefactory.pxi b/python/cdec/sa/rulefactory.pxi index 37dd6d3b..044a78c8 100644 --- a/python/cdec/sa/rulefactory.pxi +++ b/python/cdec/sa/rulefactory.pxi @@ -2070,7 +2070,7 @@ cdef class HieroCachingRuleFactory: for e_i in range(len(e_words)): f_i_aligned = aligned_ef[e_i] lc = len(f_i_aligned) - if lc > 1: + if lc > 0: stats.bilex_e[e_words[e_i]] += 1 for f_i in f_i_aligned: stats.bilex_ef[e_words[e_i]][f_words[f_i]] += (1.0) / lc |