Skip to content

Commit

Permalink
Addresses (Solves?) #183
Browse files Browse the repository at this point in the history
  • Loading branch information
x0xMaximus committed Jun 22, 2016
1 parent 9a29451 commit 08c07ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mark2cure/document/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ def as_bioc_with_user_annotations(self, request=None):
annotation.text = ann.text
passage.add_annotation(annotation)

passage_offset += len(passage.text)
# (WARNING) Addresses Github Issue #133 & #183
# Unclear how pubtator will behave with 3+ section documents
passage_offset += len(passage.text) + 1
document.add_passage(passage)

return document
Expand Down

0 comments on commit 08c07ad

Please sign in to comment.