From db73aedf51ec58ae60f70f8378228253d28266b9 Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Fri, 10 Mar 2023 14:20:53 +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 85680ffaf..5acff1472 100644 --- a/spacy/pipeline/entity_linker.py +++ b/spacy/pipeline/entity_linker.py @@ -490,7 +490,10 @@ class EntityLinker(TrainablePipe): sentences.index(sents[0]) + len(sents) - 1, ) 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]) if self.incl_context: