Browse Source

Fix bug: label deletion in sequence labeling

pull/10/head
Hironsan 7 years ago
parent
commit
ae4ef09771
4 changed files with 8 additions and 4 deletions
  1. BIN
      app/db.sqlite3
  2. 7
      app/server/package.json
  3. 2
      app/server/static/bundle/sequence_labeling.js
  4. 3
      app/server/static/js/sequence_labeling.js

BIN
app/db.sqlite3

7
app/server/package.json

@ -1,7 +1,6 @@
{
"name": "server",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
@ -16,5 +15,9 @@
"devDependencies": {
"webpack": "^4.12.0",
"webpack-cli": "^3.0.8"
}
},
"directories": {
"test": "tests"
},
"description": ""
}

2
app/server/static/bundle/sequence_labeling.js
File diff suppressed because it is too large
View File

3
app/server/static/js/sequence_labeling.js

@ -91,7 +91,8 @@ Vue.component('annotator', {
},
computed: {
sortedEntityPositions: function () {
return this.entityPositions.sort((a, b) => a.start_offset - b.start_offset)
this.entityPositions = this.entityPositions.sort((a, b) => a.start_offset - b.start_offset);
return this.entityPositions
},
chunks: function () {
var res = [];

Loading…
Cancel
Save