From 307bbab285bb2aa7ab5a696ed3638e6559ba3633 Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Fri, 17 Mar 2023 08:58:28 +0100 Subject: [PATCH] Update spacy/ml/models/entity_linker.py Co-authored-by: Sofie Van Landeghem --- spacy/ml/models/entity_linker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/ml/models/entity_linker.py b/spacy/ml/models/entity_linker.py index ea8882430..7fe0b4741 100644 --- a/spacy/ml/models/entity_linker.py +++ b/spacy/ml/models/entity_linker.py @@ -135,7 +135,7 @@ def get_candidates_batch( """ Return candidate entities for the given mentions and fetching appropriate entries from the index. kb (KnowledgeBase): Knowledge base to query. - mention (Iterable[Span]): Entity mentions for which to identify candidates. + mentions (Iterable[Span]): Entity mentions for which to identify candidates. RETURNS (Iterable[Iterable[Candidate]]): Identified candidates. """ return kb.get_candidates_batch(mentions)