mirror of https://github.com/explosion/spaCy.git
* Fix matcher setting of entities
This commit is contained in:
parent
91a94e152b
commit
383dfabd67
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue