mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-30 23:47:31 +03:00 
			
		
		
		
	Don't unset example docs
This commit is contained in:
		
							parent
							
								
									04583fe0c6
								
							
						
					
					
						commit
						5b1d15e247
					
				|  | @ -271,10 +271,6 @@ def train( | ||||||
|                     update_meta(training, nlp, info) |                     update_meta(training, nlp, info) | ||||||
|                     nlp.to_disk(output_path / "model-best") |                     nlp.to_disk(output_path / "model-best") | ||||||
|                 progress = tqdm.tqdm(total=training["eval_frequency"], leave=False) |                 progress = tqdm.tqdm(total=training["eval_frequency"], leave=False) | ||||||
|             # Clean up the objects to faciliate garbage collection. |  | ||||||
|             for eg in batch: |  | ||||||
|                 eg.reference = None |  | ||||||
|                 eg.predicted = None |  | ||||||
|     except Exception as e: |     except Exception as e: | ||||||
|         if output_path is not None: |         if output_path is not None: | ||||||
|             msg.warn( |             msg.warn( | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user