summaryrefslogtreecommitdiff
path: root/server.rb
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-12-15 04:58:21 +0100
committerPatrick Simianer <p@simianer.de>2016-12-15 04:58:21 +0100
commitb5897a62732dd7c13b2b10d7b132855d40afae0d (patch)
tree24220ddf6456cbfd5207d48b0b63bee9f4cc5bab /server.rb
parentfac00976168c6b3c94d01d76babede147e4a0710 (diff)
fix
Diffstat (limited to 'server.rb')
-rwxr-xr-xserver.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/server.rb b/server.rb
index 752d0d5..38987de 100755
--- a/server.rb
+++ b/server.rb
@@ -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|