mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-22 10:02:01 +03:00
Update spacy/kb/kb_in_memory.pyx
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
This commit is contained in:
parent
fb79b52c73
commit
10ddefa686
|
@ -228,7 +228,7 @@ cdef class InMemoryLookupKB(KnowledgeBase):
|
|||
|
||||
def get_candidates(self, mentions: Iterator[SpanGroup]) -> Iterator[Iterable[Iterable[InMemoryCandidate]]]:
|
||||
for mentions_for_doc in mentions:
|
||||
yield [self._get_alias_candidates(ent_span.text) for ent_span in mentions_for_doc]
|
||||
yield [self._get_alias_candidates(span.text) for span in mentions_for_doc]
|
||||
|
||||
def _get_alias_candidates(self, str alias) -> Iterable[InMemoryCandidate]:
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user