From 557dcf565933245c6c38630e729f925093ca41f5 Mon Sep 17 00:00:00 2001 From: Sofie Van Landeghem Date: Fri, 13 Dec 2019 15:55:18 +0100 Subject: [PATCH] NEL requires sentences to be set (#4801) --- spacy/pipeline/pipes.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/pipeline/pipes.pyx b/spacy/pipeline/pipes.pyx index 283192bae..f57ea59d2 100644 --- a/spacy/pipeline/pipes.pyx +++ b/spacy/pipeline/pipes.pyx @@ -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):