mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-30 23:47:31 +03:00 
			
		
		
		
	Fix output of best model
This commit is contained in:
		
							parent
							
								
									5a65418c40
								
							
						
					
					
						commit
						c83fccfe2a
					
				|  | @ -205,7 +205,7 @@ def _collate_best_model(meta, output_path, components): | ||||||
|     shutil.copytree(output_path / 'model-final', best_dest) |     shutil.copytree(output_path / 'model-final', best_dest) | ||||||
|     for component, best_component_src in bests.items(): |     for component, best_component_src in bests.items(): | ||||||
|         shutil.rmtree(best_dest / component) |         shutil.rmtree(best_dest / component) | ||||||
|         shutil.copytree(best_component_src, best_dest / component) |         shutil.copytree(best_component_src / component, best_dest / component) | ||||||
|         with (best_component_src / 'accuracy.json').open() as file_: |         with (best_component_src / 'accuracy.json').open() as file_: | ||||||
|             accs = json.load(file_) |             accs = json.load(file_) | ||||||
|         for metric in _get_metrics(component): |         for metric in _get_metrics(component): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user