mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
* Ensure StringStore is dumped during training
This commit is contained in:
parent
e854ba0a13
commit
ee385b439a
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user