From 348dd1c87ec853f837907ef8b804b103be1ebfcc Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Fri, 10 Mar 2023 09:03:41 +0100 Subject: [PATCH] Update docstrings. --- spacy/kb/candidate.pyx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spacy/kb/candidate.pyx b/spacy/kb/candidate.pyx index 6f0bd061e..d45d130c5 100644 --- a/spacy/kb/candidate.pyx +++ b/spacy/kb/candidate.pyx @@ -100,14 +100,15 @@ cdef class InMemoryCandidate(Candidate): @property def mention(self) -> str: - """RETURNS (str): ID/name of this entity in the KB""" + """RETURNS (str): Mention.""" return self._kb.vocab.strings[self._mention] @property def entity_id_(self) -> str: - """RETURNS (str): ID/name of this entity in the KB""" + """RETURNS (str): ID/name of this entity in the KB.""" return self._kb.vocab.strings[self._entity_id] @property def entity_freq(self) -> float: + """RETURNS (float): Entity frequence of this candidate's entity in the KB.""" return self._entity_freq