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