diff options
author | Patrick Simianer <p@simianer.de> | 2015-10-30 18:50:51 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-10-30 18:50:51 +0100 |
commit | 50fcce8314c07dc13d65da47c8fc6fdd16491495 (patch) | |
tree | a0089ef1def7f91f03dcadf831ed531856b561bb /server.rb | |
parent | a2f47cce2000cb491b7d7e0a2f1513c176e7f48c (diff) |
better OOV handling
Diffstat (limited to 'server.rb')
-rwxr-xr-x | server.rb | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -271,6 +271,11 @@ get '/next' do # (receive post-edit, update models), send next translation obj = Hash.new obj["oovs"] = oovs obj["progress"] = $db['progress'] + raw_source_annot = "#{raw_source}" + oovs.each { |o| + raw_source_annot.gsub! "#{o}", "***#{o}###" + } + obj["raw_source"] = raw_source_annot $last_reply = obj.to_json logmsg :server, "OOV reply: '#{$last_reply}'" $lock = false |