mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 21:00:19 +03:00
Small rewrite
This commit is contained in:
parent
fc0f954d9b
commit
e978beccc2
|
@ -480,7 +480,7 @@ class EntityLinker(TrainablePipe):
|
|||
sentences.index(sents[0]),
|
||||
sentences.index(sents[-1]),
|
||||
)
|
||||
assert sent_indices[-1] >= sent_indices[0] >= 0
|
||||
assert sent_indices[1] >= sent_indices[0] >= 0
|
||||
|
||||
if self.incl_context:
|
||||
# get n_neighbour sentences, clipped to the length of the document
|
||||
|
|
Loading…
Reference in New Issue
Block a user