mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
Fix logic in rules+model entity example [ci skip] (#4510)
This commit is contained in:
parent
835498d24f
commit
7fc39f124c
|
@ -1137,6 +1137,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