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