From ee385b439a0c71108639cb3e4b0e56fa794c5015 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 25 Mar 2015 01:08:24 +0100 Subject: [PATCH] * Ensure StringStore is dumped during training --- bin/parser/train.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/parser/train.py b/bin/parser/train.py index 2184ffbe6..d5ca93830 100755 --- a/bin/parser/train.py +++ b/bin/parser/train.py @@ -239,6 +239,7 @@ def train(Language, train_loc, model_dir, n_iter=15, feat_set=u'basic', seed=0, nlp.parser.model.end_training() nlp.entity.model.end_training() nlp.tagger.model.end_training() + nlp.vocab.strings.dump(path.join(model_dir, 'vocab', 'strings.txt')) def evaluate(Language, dev_loc, model_dir, gold_preproc=False, verbose=True):