mirror of
https://github.com/qurator-spk/neat.git
synced 2025-06-09 19:59:55 +02:00
init
This commit is contained in:
parent
10d991b362
commit
8ddbda9784
1 changed files with 16 additions and 15 deletions
31
ner.ed.html
31
ner.ed.html
|
@ -13,28 +13,29 @@
|
|||
</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];
|
||||
|
||||
Papa.parse(file, {
|
||||
header: true,
|
||||
delimiter: '\t',
|
||||
comments: "#",
|
||||
skipEmptyLines: true,
|
||||
dynamicTyping: true,
|
||||
complete: function(results) {
|
||||
console.log(results);
|
||||
data = results;
|
||||
}
|
||||
});
|
||||
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);
|
||||
});
|
||||
$("#tsv-file").change(handleFileSelect);
|
||||
});
|
||||
</script>
|
||||
<input type="file" id="tsv-file" name="files"/>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue