mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	Make sure path is string (resolves #3546)
This commit is contained in:
		
							parent
							
								
									d0f5e015cb
								
							
						
					
					
						commit
						6ae3b5699e
					
				| 
						 | 
				
			
			@ -113,7 +113,7 @@ class GoldCorpus(object):
 | 
			
		|||
        self.write_msgpack(self.tmp_dir / "dev", dev, limit=self.limit)
 | 
			
		||||
 | 
			
		||||
    def __del__(self):
 | 
			
		||||
        shutil.rmtree(self.tmp_dir)
 | 
			
		||||
        shutil.rmtree(path2str(self.tmp_dir))
 | 
			
		||||
 | 
			
		||||
    @staticmethod
 | 
			
		||||
    def write_msgpack(directory, doc_tuples, limit=0):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user