mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Fix vectors data added after training (see #1457)
This commit is contained in:
parent
057954695b
commit
11e3f19764
|
@ -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['accuracy'] = scorer.scores
|
||||||
meta['speed'] = {'nwords': nwords, 'cpu': cpu_wps,
|
meta['speed'] = {'nwords': nwords, 'cpu': cpu_wps,
|
||||||
'gpu': gpu_wps}
|
'gpu': gpu_wps}
|
||||||
meta['vectors'] = {'entries': nlp.vocab.vectors_length,
|
meta['vectors'] = {'width': nlp.vocab.vectors_length,
|
||||||
'width': 0}
|
'entries': len(nlp.vocab.vectors)}
|
||||||
meta['lang'] = nlp.lang
|
meta['lang'] = nlp.lang
|
||||||
meta['pipeline'] = pipeline
|
meta['pipeline'] = pipeline
|
||||||
meta['spacy_version'] = '>=%s' % about.__version__
|
meta['spacy_version'] = '>=%s' % about.__version__
|
||||||
|
|
Loading…
Reference in New Issue
Block a user