diff options
author | Patrick Simianer <p@simianer.de> | 2016-12-15 04:58:21 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-12-15 04:58:21 +0100 |
commit | b5897a62732dd7c13b2b10d7b132855d40afae0d (patch) | |
tree | 24220ddf6456cbfd5207d48b0b63bee9f4cc5bab /server.rb | |
parent | fac00976168c6b3c94d01d76babede147e4a0710 (diff) |
fix
Diffstat (limited to 'server.rb')
-rwxr-xr-x | server.rb | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -303,10 +303,12 @@ def process_next reply tmp_rules << [src, tgt] } tmp_rules_new = tmp_rules.reject { |r| - current_grammar_ids.has_key? r + current_grammar_ids.has_key? r.join(' ||| ') } tmp_rules_known = tmp_rules - tmp_rules_new - tmp_rules_known.each { |i| no_loo_known_rules << "[X] ||| #{i[0]} ||| #{i[1]} ||| KnownRule=1 ||| 0-0" } + tmp_rules_known.each { |i| + no_loo_known_rules << "[X] ||| #{i[0]} ||| #{i[1]} ||| KnownRule=1 ||| 0-0" + } tmp_rules_new.each { |i| a = [] i[0].strip.lstrip.split.each_with_index { |s,ii| |