mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-29 01:13:17 +03:00
Update spacy/kb/candidate.py
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
This commit is contained in:
parent
8dbb74c9c0
commit
082992aebb
|
@ -82,7 +82,7 @@ class InMemoryCandidate(Candidate):
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
hash_to_str (Callable[[int], str]): Callable retrieving entity name from provided entity/vocab hash.
|
hash_to_str (Callable[[int], str]): Callable retrieving entity name from provided entity/vocab hash.
|
||||||
entity_id (str): Entity ID as hash that can be looked up with InMemoryKB.vocab.strings.__getitem__().
|
entity_id (int): Entity ID as hash that can be looked up with InMemoryKB.vocab.strings.__getitem__().
|
||||||
entity_freq (int): Entity frequency in KB corpus.
|
entity_freq (int): Entity frequency in KB corpus.
|
||||||
entity_vector (List[float]): Entity embedding.
|
entity_vector (List[float]): Entity embedding.
|
||||||
mention (str): Mention.
|
mention (str): Mention.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user