Browse Source

solve issue 28 for neighbor_labeling

pull/29/head
Bramble Xu 6 years ago
parent
commit
b6e728567a
2 changed files with 3 additions and 3 deletions
  1. 2
      app/server/static/bundle/sequence_labeling.js
  2. 4
      app/server/static/js/sequence_labeling.js

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

4
app/server/static/js/sequence_labeling.js

@ -64,10 +64,10 @@ Vue.component('annotator', {
}
for (let i = 0; i < this.entityPositions.length; i++) {
const e = this.entityPositions[i];
if ((e.start_offset <= this.startOffset) && (this.startOffset <= e.end_offset)) {
if ((e.start_offset < this.startOffset) && (this.startOffset < e.end_offset)) {
return false;
}
if ((e.start_offset <= this.endOffset) && (this.endOffset <= e.end_offset)) {
if ((e.start_offset < this.endOffset) && (this.endOffset < e.end_offset)) {
return false;
}
}

Loading…
Cancel
Save