From 7c179958222b95939ff1881a49126e08a38d489e Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Fri, 11 Dec 2015 16:42:43 +0100 Subject: minor js cleanup --- phrase2_extraction/phrase2_extraction.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'phrase2_extraction') diff --git a/phrase2_extraction/phrase2_extraction.rb b/phrase2_extraction/phrase2_extraction.rb index 6dd044e..8f09a8b 100755 --- a/phrase2_extraction/phrase2_extraction.rb +++ b/phrase2_extraction/phrase2_extraction.rb @@ -274,8 +274,10 @@ class Rule correct_src = r.len_src-new_rule.len_src correct_tgt = r.len_tgt-new_rule.len_tgt - STDERR.write "correct_src #{correct_src}\n" - STDERR.write "correct_tgt #{correct_tgt}\n" + if DEBUG + STDERR.write "correct_src #{correct_src}\n" + STDERR.write "correct_tgt #{correct_tgt}\n" + end start_correct_source = nil j = 0 @@ -285,7 +287,7 @@ class Rule fl << new_rule.source_context[i] else if i.match(/\[NEWX,\d+\]/) - STDERR.write "j = #{j}\n" + STDERR.write "j = #{j}\n" if DEBUG start_correct_source = j end fl << i -- cgit v1.2.3