mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Allow overriding spacy_version in spacy package meta (#11552)
This commit is contained in:
parent
e794d4ae39
commit
6d7630c5d3
|
@ -299,8 +299,8 @@ def get_meta(
|
||||||
}
|
}
|
||||||
nlp = util.load_model_from_path(Path(model_path))
|
nlp = util.load_model_from_path(Path(model_path))
|
||||||
meta.update(nlp.meta)
|
meta.update(nlp.meta)
|
||||||
meta.update(existing_meta)
|
|
||||||
meta["spacy_version"] = util.get_minor_version_range(about.__version__)
|
meta["spacy_version"] = util.get_minor_version_range(about.__version__)
|
||||||
|
meta.update(existing_meta)
|
||||||
meta["vectors"] = {
|
meta["vectors"] = {
|
||||||
"width": nlp.vocab.vectors_length,
|
"width": nlp.vocab.vectors_length,
|
||||||
"vectors": len(nlp.vocab.vectors),
|
"vectors": len(nlp.vocab.vectors),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user