mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
NEL requires sentences to be set (#4801)
This commit is contained in:
parent
1707e77c5e
commit
557dcf5659
|
@ -1142,7 +1142,7 @@ cdef class EntityRecognizer(Parser):
|
||||||
|
|
||||||
@component(
|
@component(
|
||||||
"entity_linker",
|
"entity_linker",
|
||||||
requires=["doc.ents", "token.ent_iob", "token.ent_type"],
|
requires=["doc.ents", "doc.sents", "token.ent_iob", "token.ent_type"],
|
||||||
assigns=["token.ent_kb_id"]
|
assigns=["token.ent_kb_id"]
|
||||||
)
|
)
|
||||||
class EntityLinker(Pipe):
|
class EntityLinker(Pipe):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user