Skip to content

Commit

Permalink
* Fix bug in Tokens.ents where entity wasn't being emitted if another…
Browse files Browse the repository at this point in the history
… started immediately after
  • Loading branch information
syllog1sm committed Apr 13, 2015
1 parent 0a62c32 commit bf0aff5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spacy/tokens.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ cdef class Tokens:
start = -1
label = 0
elif token.ent_iob == 3:
if start != -1:
yield Span(self, start, i, label=label)
start = i
label = token.ent_type
if start != -1:
Expand Down

0 comments on commit bf0aff5

Please sign in to comment.