summaryrefslogtreecommitdiff
path: root/server.rb
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-12-11 16:25:38 +0100
committerPatrick Simianer <p@simianer.de>2015-12-11 16:25:38 +0100
commit546f3936d4bf51b1f575b2b4adf4e20330db22f2 (patch)
tree799356f7583bb19cc463132e9a634b45e9b0cd0b /server.rb
parent6cafb943db279faa4fc0ddb400ad1326d129c5e6 (diff)
DerivationToJson module
Diffstat (limited to 'server.rb')
-rwxr-xr-xserver.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.rb b/server.rb
index f976ee6..88f8c9a 100755
--- a/server.rb
+++ b/server.rb
@@ -375,7 +375,7 @@ post '/next' do # (receive post-edit, update models), send next translation
# 3. translation
msg = "act:translate ||| <seg grammar=\"#{grammar}\"> #{source} </seg>"
derivation_str = send_recv :dtrain, msg
- obj_str = proc_deriv derivation_str
+ obj_str = DerivationToJson.proc_deriv derivation_str
obj = JSON.parse obj_str
obj["transl"] = obj["target_groups"].join " "
# 4. detokenizer