mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			257 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			257 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import pytest
 | 
						|
 | 
						|
@pytest.mark.models('en')
 | 
						|
def test_issue1305(EN):
 | 
						|
    '''Test lemmatization of English VBZ'''
 | 
						|
    assert EN.vocab.morphology.lemmatizer('works', 'verb') == set(['work'])
 | 
						|
    doc = EN(u'This app works well')
 | 
						|
    assert doc[2].lemma_ == 'work'
 |