mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-04 11:53:09 +03:00
Fix mypy error by not using SpanGroup.__iter__()..
This commit is contained in:
parent
b6bc6885d9
commit
cdd5d69d60
|
@ -507,7 +507,10 @@ def test_el_pipe_configuration(nlp):
|
||||||
kb: InMemoryLookupKB, mentions: Iterator[SpanGroup]
|
kb: InMemoryLookupKB, mentions: Iterator[SpanGroup]
|
||||||
):
|
):
|
||||||
for doc_mentions in mentions:
|
for doc_mentions in mentions:
|
||||||
yield [get_lowercased_candidates(kb, mention) for mention in doc_mentions]
|
yield [
|
||||||
|
get_lowercased_candidates(kb, doc_mentions[idx])
|
||||||
|
for idx in range(len(doc_mentions))
|
||||||
|
]
|
||||||
|
|
||||||
@registry.misc("spacy.LowercaseCandidateGenerator.v1")
|
@registry.misc("spacy.LowercaseCandidateGenerator.v1")
|
||||||
def create_candidates() -> Callable[
|
def create_candidates() -> Callable[
|
||||||
|
|
Loading…
Reference in New Issue
Block a user