From 4e7ec1ed31301ee24fec74633fcc7f8224491317 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Tue, 23 Jul 2019 14:23:58 +0200 Subject: [PATCH] return fix --- 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 63efc3f49..609c4e852 100644 --- a/spacy/pipeline/pipes.pyx +++ b/spacy/pipeline/pipes.pyx @@ -1237,7 +1237,7 @@ class EntityLinker(Pipe): final_tensors = [] if not docs: - return final_kb_ids + return final_kb_ids, final_tensors if isinstance(docs, Doc): docs = [docs]