mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-30 18:03:04 +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]
|
kb: KnowledgeBase, mentions: Iterator[SpanGroup]
|
||||||
) -> Iterator[Iterable[Iterable[Candidate]]]:
|
) -> 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.
|
kb (KnowledgeBase): Knowledge base to query.
|
||||||
mentions (Iterator[SpanGroup]): Mentions per doc as SpanGroup instance.
|
mentions (Iterator[SpanGroup]): Mentions per doc.
|
||||||
RETURNS (Iterator[Iterable[Iterable[Candidate]]]): Identified candidates per document.
|
RETURNS (Iterator[Iterable[Iterable[Candidate]]]): Identified candidates per mentions in document/SpanGroup.
|
||||||
"""
|
"""
|
||||||
return kb.get_candidates(mentions)
|
return kb.get_candidates(mentions)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user