diff options
Diffstat (limited to 'phrase_alignment/phrase_alignment.rb')
-rwxr-xr-x | phrase_alignment/phrase_alignment.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phrase_alignment/phrase_alignment.rb b/phrase_alignment/phrase_alignment.rb index 9d29798..1c1a0ed 100755 --- a/phrase_alignment/phrase_alignment.rb +++ b/phrase_alignment/phrase_alignment.rb @@ -125,7 +125,7 @@ class Rule def base_alignment2 correct_src, correct_tgt, start_source, start_target @alignment.each_with_index { |p,j| - if p[0] > start_source + if p[0] > start_source @alignment[j][0] = [0,p.first-correct_src].max end if p[1] > start_target @@ -328,7 +328,7 @@ class Rule end j += 1 } - + el = [] new_rule.target.each { |i| if i.is_a? Range |