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
---
js/lfpe.js | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
(limited to 'js')
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