|
|
|
@ -15,7 +15,8 @@ var checkedAnnotation = "";
|
|
|
|
|
var algIndexedArray = [];
|
|
|
|
|
var computedLanguage = "";
|
|
|
|
|
var dataMiner = "";
|
|
|
|
|
var appRoot = ".";
|
|
|
|
|
var appLocation = window.location.href;
|
|
|
|
|
var appRoot = "";
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------------
|
|
|
|
|
// Starting point: get the csv file with algorithm parameters and set the page
|
|
|
|
@ -23,6 +24,9 @@ var appRoot = ".";
|
|
|
|
|
// ------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
console.log('HREF: '+appLocation);
|
|
|
|
|
appRoot=contextPath;
|
|
|
|
|
console.log('appRoot: '+ appRoot );
|
|
|
|
|
$(".popup-text").hide();
|
|
|
|
|
disableExecuteButton();
|
|
|
|
|
showAnnotationsList();
|
|
|
|
@ -1006,26 +1010,31 @@ getIndices = function() {
|
|
|
|
|
var indices = [];
|
|
|
|
|
// get indices
|
|
|
|
|
for (var i = 0; i < jsonContent.output.result.length; i++) {
|
|
|
|
|
// filter on algorithm
|
|
|
|
|
var found = false;
|
|
|
|
|
for (var j = 0; j < checkedAlgs.length; j++) {
|
|
|
|
|
if (checkedAlgs[j].getAttribute("named") == jsonContent.output.result[i].algorithm) {
|
|
|
|
|
found = true;
|
|
|
|
|
break;
|
|
|
|
|
if (typeof jsonContent.output.result[i] === 'undefined'
|
|
|
|
|
|| jsonContent.output.result[i] == null) {
|
|
|
|
|
console.log("No result for " + i);
|
|
|
|
|
} else {
|
|
|
|
|
// filter on algorithm
|
|
|
|
|
var found = false;
|
|
|
|
|
for (var j = 0; j < checkedAlgs.length; j++) {
|
|
|
|
|
if (checkedAlgs[j].getAttribute("named") == jsonContent.output.result[i].algorithm) {
|
|
|
|
|
found = true;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (!found)
|
|
|
|
|
continue;
|
|
|
|
|
if (!found)
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
var entities = jsonContent.output.result[i].entities;
|
|
|
|
|
for (var j = 0; j < entities.length; j++) {
|
|
|
|
|
// filter on annotation
|
|
|
|
|
a = entities[j][checkedAnnotation];
|
|
|
|
|
if (typeof a != 'undefined') {
|
|
|
|
|
indices[i] = [];
|
|
|
|
|
for (var k = 0; k < a.length; k++) {
|
|
|
|
|
var index = a[k].indices;
|
|
|
|
|
indices[i][k] = index;
|
|
|
|
|
var entities = jsonContent.output.result[i].entities;
|
|
|
|
|
for (var j = 0; j < entities.length; j++) {
|
|
|
|
|
// filter on annotation
|
|
|
|
|
a = entities[j][checkedAnnotation];
|
|
|
|
|
if (typeof a != 'undefined') {
|
|
|
|
|
indices[i] = [];
|
|
|
|
|
for (var k = 0; k < a.length; k++) {
|
|
|
|
|
var index = a[k].indices;
|
|
|
|
|
indices[i][k] = index;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|