mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-02 19:30:19 +03:00
make spacy-legacy version explicit in error message
This commit is contained in:
parent
b536ed5978
commit
f8d05e5aa1
|
@ -124,7 +124,7 @@ def make_entity_linker(
|
||||||
except:
|
except:
|
||||||
raise ImportError(
|
raise ImportError(
|
||||||
"""In order to use v1 of the EntityLinker, you must use
|
"""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.
|
# The only difference in arguments here is that use_gold_ents and threshold aren't available.
|
||||||
return EntityLinker_v1(
|
return EntityLinker_v1(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user