Fix metadata in training

This commit is contained in:
Matthew Honnibal 2017-10-11 08:55:52 +02:00
parent 74c2c6a58c
commit acba2e1051

View File

@ -91,6 +91,8 @@ def train(cmd, lang, output_dir, train_data, dev_data, n_iter=10, n_sents=0,
lang_class = util.get_lang_class(lang) lang_class = util.get_lang_class(lang)
nlp = lang_class() nlp = lang_class()
meta['pipeline'] = pipeline
nlp.meta.update(meta)
if vectors: if vectors:
util.load_model(vectors, vocab=nlp.vocab) util.load_model(vectors, vocab=nlp.vocab)
for name in pipeline: for name in pipeline: