From 64191755b67548ee6d11f47687a805a962177cf6 Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Fri, 10 Mar 2023 14:08:21 +0100 Subject: [PATCH] Format. --- spacy/pipeline/entity_linker.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spacy/pipeline/entity_linker.py b/spacy/pipeline/entity_linker.py index fdfcafc92..0d0d366b5 100644 --- a/spacy/pipeline/entity_linker.py +++ b/spacy/pipeline/entity_linker.py @@ -484,7 +484,10 @@ class EntityLinker(TrainablePipe): # 2. "8 was beautiful" # This makes it tricky to receive the last sentence by indexing doc.sents - hence we use an offset # to determine sent_indices[1]. - sent_indices = (sentences.index(sents[0]), sentences.index(sents[0]) + len(sents) - 1) + sent_indices = ( + sentences.index(sents[0]), + sentences.index(sents[0]) + len(sents) - 1, + ) assert all([si >= 0 for si in sent_indices]) if self.incl_context: