1
0
Fork 0
mirror of https://github.com/qurator-spk/neat.git synced 2025-06-09 19:59:55 +02:00
This commit is contained in:
cneud 2019-07-26 17:49:44 +02:00
parent c3f93adceb
commit 10d991b362

41
ner.ed.html Normal file
View file

@ -0,0 +1,41 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>ner.ed</title>
<script type="text/javascript" src="https://unpkg.com/papaparse@latest/papaparse.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<style>
body{font-family:Courier;font-size:24px}
th{}
tr{}
</style>
</head>
<body>
<strong>ner.ed | simple editor for named entity recognition TSV</strong><br><br>
<script>
var data;
function handleFileSelect(evt) {
var file = evt.target.files[0];
Papa.parse(file, {
header: true,
delimiter: '\t',
comments: "#",
skipEmptyLines: true,
dynamicTyping: true,
complete: function(results) {
console.log(results);
data = results;
}
});
}
$(document).ready(function(){
$("#tsv-file").change(handleFileSelect);
});
</script>
<input type="file" id="tsv-file" name="files"/>
</body>
</html>