mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +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(
|
||||
"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"]
|
||||
)
|
||||
class EntityLinker(Pipe):
|
||||
|
|
Loading…
Reference in New Issue
Block a user