From c5b15e0e045411ef0901cbb59788805bbabb173f Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Wed, 9 Nov 2022 14:31:08 +0100 Subject: [PATCH] Update docstring. --- spacy/kb/kb.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/kb/kb.pyx b/spacy/kb/kb.pyx index b2ff80834..8e5b52d26 100644 --- a/spacy/kb/kb.pyx +++ b/spacy/kb/kb.pyx @@ -32,9 +32,9 @@ cdef class KnowledgeBase: def get_candidates_all(self, mentions: Iterator[Iterable[Span]]) -> Iterator[Iterable[Iterable[Candidate]]]: """ - Return candidate entities for specified texts. Each candidate defines the entity, the original alias, + Return candidate entities for specified mentions. Each candidate defines the entity, the original alias, and the prior probability of that alias resolving to that entity. - If no candidate is found for a given text, an empty list is returned. + If no candidate is found for a given mentions, an empty list is returned. mentions (Generator[Iterable[Span]]): Mentions per documents for which to get candidates. RETURNS (Generator[Iterable[Iterable[Candidate]]]): Identified candidates per document. """