mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
Set vectors.name when updating meta.json during training (#3100)
* Set vectors.name when updating meta.json during training * add vectors name to meta in `spacy package`
This commit is contained in:
parent
cc95167b6d
commit
0546135fba
|
@ -102,6 +102,7 @@ def generate_meta(model_path, existing_meta, msg):
|
|||
"width": nlp.vocab.vectors_length,
|
||||
"vectors": len(nlp.vocab.vectors),
|
||||
"keys": nlp.vocab.vectors.n_keys,
|
||||
"name": nlp.vocab.vectors.name,
|
||||
}
|
||||
msg.divider("Generating meta.json")
|
||||
msg.text(
|
||||
|
|
|
@ -279,6 +279,7 @@ def train(
|
|||
"width": nlp.vocab.vectors_length,
|
||||
"vectors": len(nlp.vocab.vectors),
|
||||
"keys": nlp.vocab.vectors.n_keys,
|
||||
"name": nlp.vocab.vectors.name
|
||||
}
|
||||
meta.setdefault("name", "model%d" % i)
|
||||
meta.setdefault("version", version)
|
||||
|
|
Loading…
Reference in New Issue
Block a user