NEL requires sentences to be set (#4801)

This commit is contained in:
Sofie Van Landeghem 2019-12-13 15:55:18 +01:00 committed by Ines Montani
parent 1707e77c5e
commit 557dcf5659

View File

@ -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):