diff options
author | Patrick Simianer <p@simianer.de> | 2015-12-11 16:25:38 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-12-11 16:25:38 +0100 |
commit | 546f3936d4bf51b1f575b2b4adf4e20330db22f2 (patch) | |
tree | 799356f7583bb19cc463132e9a634b45e9b0cd0b /server.rb | |
parent | 6cafb943db279faa4fc0ddb400ad1326d129c5e6 (diff) |
DerivationToJson module
Diffstat (limited to 'server.rb')
-rwxr-xr-x | server.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |