From 571eaf62389f078ccb26e76e9aa707306527e01e Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Mon, 24 Apr 2023 20:42:59 +0200 Subject: [PATCH] Update spacy/kb/kb.pyx Co-authored-by: Sofie Van Landeghem --- spacy/kb/kb.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/kb/kb.pyx b/spacy/kb/kb.pyx index 7b76373c8..15dec075d 100644 --- a/spacy/kb/kb.pyx +++ b/spacy/kb/kb.pyx @@ -37,7 +37,7 @@ cdef class KnowledgeBase: probability of the specified mention text resolving to that entity - might be included. If no candidates are found for a given mention, an empty list is returned. mentions (Iterable[SpanGroup]): Mentions for which to get candidates. - RETURNS (Iterable[Iterable[Candidate]]): Identified candidates. + RETURNS (Iterator[Iterable[Iterable[Candidate]]]): Identified candidates. """ raise NotImplementedError( Errors.E1045.format(parent="KnowledgeBase", method="get_candidates", name=self.__name__)