`Docs`: Fix rule-based matching example that expands named entities (#12495)

This commit is contained in:
Madeesh Kannan 2023-04-06 11:45:58 +02:00 committed by GitHub
parent c95d320d28
commit 6db20b354f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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