Browse Source

solve annotate same word with different label

pull/30/head
Bramble Xu 6 years ago
parent
commit
1ae8250378
2 changed files with 2 additions and 2 deletions
  1. 2
      app/server/static/bundle/sequence_labeling.js
  2. 2
      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

2
app/server/static/js/sequence_labeling.js

@ -64,7 +64,7 @@ Vue.component('annotator', {
} }
for (let i = 0; i < this.entityPositions.length; i++) { for (let i = 0; i < this.entityPositions.length; i++) {
const e = this.entityPositions[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; return false;
} }
if ((e.start_offset < this.endOffset) && (this.endOffset < e.end_offset)) { if ((e.start_offset < this.endOffset) && (this.endOffset < e.end_offset)) {

Loading…
Cancel
Save