From fac00976168c6b3c94d01d76babede147e4a0710 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Wed, 20 Jul 2016 10:55:13 +0200 Subject: noloo new rules: align all --- phrase2_extraction/phrase2_extraction.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'phrase2_extraction') diff --git a/phrase2_extraction/phrase2_extraction.rb b/phrase2_extraction/phrase2_extraction.rb index 1f268cd..b376953 100755 --- a/phrase2_extraction/phrase2_extraction.rb +++ b/phrase2_extraction/phrase2_extraction.rb @@ -178,6 +178,16 @@ class Rule } astr.strip! + #a = [] + #source_string.strip.lstrip.split.each_with_index { |s,i| + # target_string.strip.lstrip.split.each_with_index { |t,j| + # if !s.match /\[X,\d+\]/ and !t.match /\[X,\d+\]/ + # a << "#{i}-#{j}" + # end + # } + #} + #astr = a.join ' ' + return "[X] ||| #{source_string} ||| #{target_string} ||| NewRule=1 ||| #{astr}" end -- cgit v1.2.3