mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 16:07:41 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			285 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			285 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # coding: utf-8
 | |
| from __future__ import unicode_literals
 | |
| 
 | |
| from ..util import get_doc
 | |
| 
 | |
| 
 | |
| def test_issue599(en_vocab):
 | |
|     doc = get_doc(en_vocab)
 | |
|     doc.is_tagged = True
 | |
|     doc.is_parsed = True
 | |
|     doc2 = get_doc(doc.vocab)
 | |
|     doc2.from_bytes(doc.to_bytes())
 | |
|     assert doc2.is_parsed
 |