mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Remove unnecessary check
This commit is contained in:
parent
bbc1836581
commit
75f08ad62d
|
@ -253,9 +253,7 @@ def get_model_meta(path):
|
||||||
raise ValueError(Errors.E054.format(setting=setting))
|
raise ValueError(Errors.E054.format(setting=setting))
|
||||||
if "spacy_version" in meta:
|
if "spacy_version" in meta:
|
||||||
about_major_minor = ".".join(about.__version__.split(".")[:2])
|
about_major_minor = ".".join(about.__version__.split(".")[:2])
|
||||||
if about_major_minor is not None and not meta["spacy_version"].startswith(
|
if not meta["spacy_version"].startswith(">=" + about_major_minor):
|
||||||
">=" + about_major_minor
|
|
||||||
):
|
|
||||||
# try to simplify version requirements from model meta to vx.x
|
# try to simplify version requirements from model meta to vx.x
|
||||||
# for warning message
|
# for warning message
|
||||||
meta_spacy_version = "v" + ".".join(
|
meta_spacy_version = "v" + ".".join(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user