mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-07 13:44:55 +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[0]),
|
||||||
sentences.index(sents[-1]),
|
sentences.index(sents[-1]),
|
||||||
)
|
)
|
||||||
assert sent_indices[-1] >= sent_indices[0] >= 0
|
assert sent_indices[1] >= sent_indices[0] >= 0
|
||||||
|
|
||||||
if self.incl_context:
|
if self.incl_context:
|
||||||
# get n_neighbour sentences, clipped to the length of the document
|
# get n_neighbour sentences, clipped to the length of the document
|
||||||
|
|
Loading…
Reference in New Issue
Block a user