mirror of https://github.com/explosion/spaCy.git
Don't collate model unless training succeeds
This commit is contained in:
parent
24dfbb8a28
commit
c4698f5712
|
@ -196,6 +196,7 @@ def train(lang, output_dir, train_data, dev_data, n_iter=30, n_sents=0,
|
|||
components.append('ner')
|
||||
_collate_best_model(meta, output_path, components)
|
||||
|
||||
|
||||
def _collate_best_model(meta, output_path, components):
|
||||
bests = {}
|
||||
for component in components:
|
||||
|
|
Loading…
Reference in New Issue