mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-30 15:37:29 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			374 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			374 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from __future__ import unicode_literals
 | |
| 
 | |
| from spacy.en import English
 | |
| 
 | |
| import pytest
 | |
| 
 | |
| @pytest.mark.models
 | |
| def test_vec(EN):
 | |
|     hype = EN.vocab['hype']
 | |
|     assert hype.orth_ == 'hype'
 | |
|     assert 0.08 >= hype.vector[0] > 0.07
 | |
| 
 | |
| 
 | |
| @pytest.mark.models
 | |
| def test_capitalized(EN):
 | |
|     hype = EN.vocab['Hype']
 | |
|     assert hype.orth_ == 'Hype'
 | |
|     assert 0.08 >= hype.vector[0] > 0.07
 |