From 50fcce8314c07dc13d65da47c8fc6fdd16491495 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Fri, 30 Oct 2015 18:50:51 +0100 Subject: better OOV handling --- index.php | 1 + interface.php | 8 +++++--- js/lfpe.js | 20 ++++++++++++++++++-- server.rb | 5 +++++ static/main.css | 5 +++++ 5 files changed, 34 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 30d8993..1123b02 100644 --- a/index.php +++ b/index.php @@ -25,6 +25,7 @@

Beta test: + diff --git a/js/lfpe.js b/js/lfpe.js index a626f1d..28a5d97 100644 --- a/js/lfpe.js +++ b/js/lfpe.js @@ -174,10 +174,10 @@ function Next() document.getElementById("seg_"+(current_seg_id.value)+"_t").innerHTML=post_edit; // OOV correction mode } else if (oov_correct.value=="true") { - var l = document.getElementById("oov_fields").children.length; + var l = document.getElementById("oov_num_items").value; var src = []; var tgt = []; - for (var i=0; i").replace(/###/g,"")); for (var i=0; i