From 9baf0abd59339da6a38524a15b59f00556ed4d6f Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 10 Sep 2015 21:37:01 +0200 Subject: [PATCH] * Save vocab after training. --- spacy/language.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/language.py b/spacy/language.py index 65425bc45..afa359d91 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -247,6 +247,7 @@ class Language(object): self.parser.model.end_training(path.join(data_dir, 'deps', 'model')) self.entity.model.end_training(path.join(data_dir, 'ner', 'model')) self.tagger.model.end_training(path.join(data_dir, 'pos', 'model')) + self.vocab.dump(path.join(data_dir, 'vocab', 'lexemes.bin')) self.vocab.strings.dump(path.join(data_dir, 'vocab', 'strings.txt')) with open(path.join(data_dir, 'vocab', 'serializer.json'), 'w') as file_: