Skip to content

Commit

Permalink
Fix vectors data added after training (see #1457)
Browse files Browse the repository at this point in the history
  • Loading branch information
ines committed Oct 25, 2017
1 parent 0579546 commit 11e3f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spacy/cli/train.py
Expand Up @@ -146,8 +146,8 @@ def train(cmd, lang, output_dir, train_data, dev_data, n_iter=30, n_sents=0,
meta['accuracy'] = scorer.scores
meta['speed'] = {'nwords': nwords, 'cpu': cpu_wps,
'gpu': gpu_wps}
meta['vectors'] = {'entries': nlp.vocab.vectors_length,
'width': 0}
meta['vectors'] = {'width': nlp.vocab.vectors_length,
'entries': len(nlp.vocab.vectors)}
meta['lang'] = nlp.lang
meta['pipeline'] = pipeline
meta['spacy_version'] = '>=%s' % about.__version__
Expand Down

0 comments on commit 11e3f19

Please sign in to comment.