From faede7155ccb553ee04c409d873eaf193f9ad86e Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Fri, 17 Mar 2023 11:32:41 +0100 Subject: [PATCH] Update spacy/kb/kb.pyx Co-authored-by: Sofie Van Landeghem --- 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 6260dfb72..1cb08f488 100644 --- a/spacy/kb/kb.pyx +++ b/spacy/kb/kb.pyx @@ -43,10 +43,10 @@ cdef class KnowledgeBase: def get_candidates(self, mention: Span) -> Iterable[Candidate]: """ - Return candidate entities for specified mention text. Each candidate defines at least the entity and the + Return candidate entities for a specific mention. Each candidate defines at least the entity and the entity's embedding vector. Depending on the KB implementation, further properties - such as the prior probability of the specified mention text resolving to that entity - might be included. - If the no candidate is found for the given mention text, an empty list is returned. + If no candidate is found for the given mention, an empty list is returned. mention (Span): Mention for which to get candidates. RETURNS (Iterable[Candidate]): Identified candidates. """