mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-29 17:33:10 +03:00
Update docstrings.
This commit is contained in:
parent
27053912da
commit
348dd1c87e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user