mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 21:00:19 +03:00
Fix mypy error.
This commit is contained in:
parent
e64a9ea499
commit
73c830c0e7
|
@ -474,6 +474,7 @@ class EntityLinker(TrainablePipe):
|
|||
|
||||
# Looping through each entity in batch (TODO: rewrite)
|
||||
for j, ent in enumerate(ent_batch):
|
||||
assert hasattr(ent, "sents")
|
||||
sents = list(ent.sents)
|
||||
# Note: the last sentence associated with an sentence-crossing entity isn't complete. E. g. if you
|
||||
# have "Mahler's Symphony No. 8 was beautiful", the entity being "No. 8", ent.sents would be:
|
||||
|
|
Loading…
Reference in New Issue
Block a user