pull/39/head
cneud 5 years ago
parent 10d991b362
commit 8ddbda9784

@ -13,27 +13,28 @@
</head>
<body>
<strong>ner.ed | simple editor for named entity recognition TSV</strong><br><br>
<div id="table"></div>
<script>
var data;
function handleFileSelect(evt) {
var file = evt.target.files[0];
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;
}
});
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);
$("#tsv-file").change(handleFileSelect);
});
</script>
<input type="file" id="tsv-file" name="files"/>

Loading…
Cancel
Save