From e34b4a38b0d9c1257911e9de73285a51fed9bd29 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 19 Sep 2019 00:56:07 +0200 Subject: [PATCH] Fix set labels meta --- spacy/cli/train.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/cli/train.py b/spacy/cli/train.py index e2bdddda3..d32e4b79d 100644 --- a/spacy/cli/train.py +++ b/spacy/cli/train.py @@ -441,6 +441,7 @@ def train( } meta.setdefault("name", "model%d" % i) meta.setdefault("version", version) + meta["labels"] = nlp.meta["labels"] meta_loc = output_path / ("model%d" % i) / "meta.json" srsly.write_json(meta_loc, meta) util.set_env_log(verbose)