* Fix matcher setting of entities

This commit is contained in:
Matthew Honnibal 2015-08-06 16:27:01 +02:00
parent 91a94e152b
commit 383dfabd67
1 changed files with 1 additions and 1 deletions

View File

@ -154,5 +154,5 @@ cdef class Matcher:
matches.append(get_entity(state, token, token_i))
else:
partials.push_back(state + 1)
doc.ents = list(sorted(list(doc.ents) + matches))
doc.ents = [(e.label, e.start, e.end) for e in doc.ents] + matches
return matches