Skip to content

Commit c77c2bb

Browse files
committed
fix incorrect indexing of words
1 parent 257b5e3 commit c77c2bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/tag/js/tag.min.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34901,7 +34901,7 @@ var BratParser = function () {
3490134901
graph.words.push(word);
3490234902
});
3490334903
} else {
34904-
t.entity.idx = i;
34904+
t.entity.idx = graph.words.length;
3490534905
}
3490634906
});
3490734907
graph.words.sort(function (a, b) {

src/js/parse/ann.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class BratParser {
7171
graph.words.push(word);
7272
});
7373
} else {
74-
t.entity.idx = i;
74+
t.entity.idx = graph.words.length;
7575
}
7676
});
7777
graph.words.sort((a, b) => a.idx - b.idx);

0 commit comments

Comments
 (0)