mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-30 07:27:28 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			228 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			228 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import pytest
 | |
| 
 | |
| import pickle
 | |
| import cloudpickle
 | |
| 
 | |
| import io
 | |
| 
 | |
| 
 | |
| #@pytest.mark.models
 | |
| #def test_pickle(EN):
 | |
| #    file_ = io.BytesIO()
 | |
| #    cloudpickle.dump(EN.parser, file_)
 | |
| #
 | |
| #    file_.seek(0)
 | |
| #
 | |
| #    loaded = pickle.load(file_)
 | |
| #
 |