@ -6,16 +6,19 @@
< script type = "text/javascript" src = "https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.0.1/papaparse.js" > < / script >
< script type = "text/javascript" src = "https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.0.1/papaparse.js" > < / script >
< script type = "text/javascript" src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" > < / script >
< script type = "text/javascript" src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" > < / script >
< style >
< style >
body{font-family:Courier ;font-size:16px}
body{font-family:Open Sans ;font-size:16px}
table{table-layout:fixed;width:765px;text-align:center}
table{table-layout:fixed;width:765px;text-align:center}
th{background-color:lightgray}
th{background-color:lightgray}
td:hover{background-color:yellow}
td:hover{background-color:yellow}
tr:hover{background-color:whitesmoke}
tr:hover{background-color:whitesmoke}
.ner_per{background-color:pink}
.ner_loc{background-color:orange}
.ner_org{background-color:red}
< / style >
< / style >
< / head >
< / head >
< body >
< body >
< h3 > ner.edith: named entity recognition editor in html< / h3 >
< h3 > ner.edith: named entity recognition editor in html< / h3 >
Please upload a TSV (tab-separated-values) file in the < a href = "https://sites.google.com/site/germeval2014ner/data" > GermEval2014 data format< / a > : < input type = "file" id = "tsv-file" name = "files" / > < br > < br >
Please upload a TSV (tab-separated-values) file in the GermEval2014 data format< sup > [ < a href = "https://sites.google.com/site/germeval2014ner/data" target = "_blank" > i< / a > ]< / sup > : < input type = "file" id = "tsv-file" name = "files" / > < br > < br >
< table id = "table" >
< table id = "table" >
< thead >
< thead >
< tr >
< tr >
@ -77,7 +80,7 @@
makeTdEditable(target);
makeTdEditable(target);
}
}
};
}
function makeTdEditable(td) {
function makeTdEditable(td) {
editingTd = {
editingTd = {
@ -113,7 +116,13 @@
}
}
$(document).ready(function() {
$(document).ready(function() {
$("#tsv-file").change(handleFileSelect);
$('#tsv-file').change(handleFileSelect);
$("#table tr:contains('B-PER')").addClass('ner_per');
$("#table tr:contains('I-PER')").addClass('ner_per');
$("#table tr:contains('B-LOC')").addClass('ner_loc');
$("#table tr:contains('I-LOC')").addClass('ner_loc');
$("#table tr:contains('B-ORG')").addClass('ner_org');
$("#table tr:contains('B-ORG')").addClass('ner_org');
});
});
< / script >
< / script >
< / body >
< / body >