make spacy-legacy version explicit in error message

This commit is contained in:
Paul O'Leary McCann 2023-01-23 18:25:33 +09:00
parent b536ed5978
commit f8d05e5aa1

View File

@ -124,7 +124,7 @@ def make_entity_linker(
except:
raise ImportError(
"""In order to use v1 of the EntityLinker, you must use
spacy-legacy >=XXX."""
spacy-legacy>=3.0.12."""
)
# The only difference in arguments here is that use_gold_ents and threshold aren't available.
return EntityLinker_v1(