mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-22 10:02:01 +03:00
Update get_candidates() docstring.
This commit is contained in:
parent
1ece9ec30b
commit
cfbb4a5d99
|
@ -118,9 +118,9 @@ def get_candidates(
|
|||
kb: KnowledgeBase, mentions: Iterator[SpanGroup]
|
||||
) -> Iterator[Iterable[Iterable[Candidate]]]:
|
||||
"""
|
||||
Return candidate entities for the given mentions and fetching appropriate entries from the index.
|
||||
Return candidate entities for the given mentions from the KB.
|
||||
kb (KnowledgeBase): Knowledge base to query.
|
||||
mentions (Iterator[SpanGroup]): Mentions per doc as SpanGroup instance.
|
||||
RETURNS (Iterator[Iterable[Iterable[Candidate]]]): Identified candidates per document.
|
||||
mentions (Iterator[SpanGroup]): Mentions per doc.
|
||||
RETURNS (Iterator[Iterable[Iterable[Candidate]]]): Identified candidates per mentions in document/SpanGroup.
|
||||
"""
|
||||
return kb.get_candidates(mentions)
|
||||
|
|
Loading…
Reference in New Issue
Block a user