mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 02:06:31 +03:00
Docs
: Fix rule-based matching example that expands named entities (#12495)
This commit is contained in:
parent
9fbb8ee912
commit
f66d55fe5b
|
@ -1684,6 +1684,8 @@ def expand_person_entities(doc):
|
|||
new_ents.append(new_ent)
|
||||
else:
|
||||
new_ents.append(ent)
|
||||
else:
|
||||
new_ents.append(ent)
|
||||
doc.ents = new_ents
|
||||
return doc
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user