Browse Source

solve contain label annotation problem

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

6
app/server/static/js/sequence_labeling.js

@ -70,6 +70,12 @@ Vue.component('annotator', {
if ((e.start_offset < this.endOffset) && (this.endOffset < e.end_offset)) {
return false;
}
if ((this.startOffset < e.start_offset) && (e.start_offset < this.endOffset)) {
return false;
}
if ((this.startOffset < e.end_offset) && (e.end_offset < this.endOffset)) {
return false;
}
}
return true;
},

Loading…
Cancel
Save