mirror of https://github.com/explosion/spaCy.git
Fix set labels meta
This commit is contained in:
parent
9d399fe63a
commit
e34b4a38b0
|
@ -441,6 +441,7 @@ def train(
|
||||||
}
|
}
|
||||||
meta.setdefault("name", "model%d" % i)
|
meta.setdefault("name", "model%d" % i)
|
||||||
meta.setdefault("version", version)
|
meta.setdefault("version", version)
|
||||||
|
meta["labels"] = nlp.meta["labels"]
|
||||||
meta_loc = output_path / ("model%d" % i) / "meta.json"
|
meta_loc = output_path / ("model%d" % i) / "meta.json"
|
||||||
srsly.write_json(meta_loc, meta)
|
srsly.write_json(meta_loc, meta)
|
||||||
util.set_env_log(verbose)
|
util.set_env_log(verbose)
|
||||||
|
|
Loading…
Reference in New Issue