mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
return fix
This commit is contained in:
parent
a037206f0a
commit
4e7ec1ed31
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user