|
|
|
@ -780,7 +780,8 @@ buildAlgortihmList = function() {
|
|
|
|
|
$("#algorithm-params-div").empty();
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < jsonContent.output.result.length; i++) {
|
|
|
|
|
if (jsonContent.output.result[i] === undefined) {
|
|
|
|
|
if (typeof jsonContent.output.result[i] === 'undefined'
|
|
|
|
|
|| jsonContent.output.result[i] == null) {
|
|
|
|
|
console.log("No result for " + i);
|
|
|
|
|
} else {
|
|
|
|
|
var cb = "<div class='alg-info-p'><input type='checkbox' name='foo-ner-algs' checked named='"
|
|
|
|
@ -980,12 +981,17 @@ filterAlgorithmsByAnnotation = function() {
|
|
|
|
|
*/
|
|
|
|
|
checkAnnotation = function(annotation) {
|
|
|
|
|
for (var i = 0; i < jsonContent.output.result.length; i++) {
|
|
|
|
|
var entities = jsonContent.output.result[i].entities;
|
|
|
|
|
for (var j = 0; j < entities.length; j++) {
|
|
|
|
|
a = entities[j][annotation];
|
|
|
|
|
if (typeof a != 'undefined') {
|
|
|
|
|
if (a.length > 0)
|
|
|
|
|
return true;
|
|
|
|
|
if (typeof jsonContent.output.result[i] === 'undefined'
|
|
|
|
|
|| jsonContent.output.result[i] == null) {
|
|
|
|
|
console.log("No result for " + i);
|
|
|
|
|
} else {
|
|
|
|
|
var entities = jsonContent.output.result[i].entities;
|
|
|
|
|
for (var j = 0; j < entities.length; j++) {
|
|
|
|
|
a = entities[j][annotation];
|
|
|
|
|
if (typeof a != 'undefined') {
|
|
|
|
|
if (a.length > 0)
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|