From 0a9016cadeb93b33deb711764177127c5f187a09 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 21 Sep 2017 13:06:45 -0500 Subject: [PATCH] Fix serialization during training --- spacy/cli/train.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/cli/train.py b/spacy/cli/train.py index f80e285c0..801706614 100644 --- a/spacy/cli/train.py +++ b/spacy/cli/train.py @@ -104,8 +104,8 @@ def train(cmd, lang, output_dir, train_data, dev_data, n_iter=20, n_sents=0, util.set_env_log(False) epoch_model_path = output_path / ('model%d' % i) nlp.to_disk(epoch_model_path) - #nlp_loaded = lang_class(pipeline=pipeline) - #nlp_loaded = nlp_loaded.from_disk(epoch_model_path) + nlp_loaded = lang_class(pipeline=pipeline) + nlp_loaded = nlp_loaded.from_disk(epoch_model_path) scorer = nlp.evaluate( corpus.dev_docs( nlp,