diff options
author | Patrick Simianer <p@simianer.de> | 2015-12-11 15:48:36 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-12-11 15:48:36 +0100 |
commit | a99ff09bc2c850f45950dde03644f38aab164090 (patch) | |
tree | a9f927d91b395b561c0d50e6081e6fe51bd36246 /phrase_alignment | |
parent | f53eef1476a47ea0b57938018fdd905f865dcf1e (diff) |
whitespace
Diffstat (limited to 'phrase_alignment')
-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 |