From 3da0712582e272bd757cfe41a6a477c9d875bd9e Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Wed, 1 Mar 2023 13:15:38 +0100 Subject: [PATCH] Update doc string of BaseCandidate.__init__(). --- spacy/kb/candidate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/kb/candidate.py b/spacy/kb/candidate.py index 190792fbe..933bed64e 100644 --- a/spacy/kb/candidate.py +++ b/spacy/kb/candidate.py @@ -14,7 +14,7 @@ class BaseCandidate(abc.ABC): def __init__( self, mention: str, entity_id: Union[int, str], entity_vector: List[float] ): - """Create new instance of `Candidate`. Note: has to be a sub-class, otherwise error will be raised. + """Initializes properties of `BaseCandidate`. mention (str): Mention text for this candidate. entity_id (Union[int, str]): Unique entity ID. entity_vector (List[float]): Entity embedding.