diff --git a/spacy/cli/train.py b/spacy/cli/train.py index fc4c9f67b..b81214b95 100644 --- a/spacy/cli/train.py +++ b/spacy/cli/train.py @@ -576,6 +576,8 @@ def train( with nlp.use_params(optimizer.averages): final_model_path = output_path / "model-final" nlp.to_disk(final_model_path) + srsly.write_json(final_model_path / "meta.json", meta) + meta_loc = output_path / "model-final" / "meta.json" final_meta = srsly.read_json(meta_loc) final_meta.setdefault("accuracy", {})