mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-07 13:44:55 +03:00
Format.
This commit is contained in:
parent
16b47eb387
commit
db73aedf51
|
@ -490,7 +490,10 @@ class EntityLinker(TrainablePipe):
|
||||||
sentences.index(sents[0]) + len(sents) - 1,
|
sentences.index(sents[0]) + len(sents) - 1,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
sent_indices = (sentences.index(ent.sent), sentences.index(ent.sent))
|
sent_indices = (
|
||||||
|
sentences.index(ent.sent),
|
||||||
|
sentences.index(ent.sent),
|
||||||
|
)
|
||||||
assert all([si >= 0 for si in sent_indices])
|
assert all([si >= 0 for si in sent_indices])
|
||||||
|
|
||||||
if self.incl_context:
|
if self.incl_context:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user