mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			536 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			536 B
		
	
	
	
		
			Python
		
	
	
	
	
	
# coding: utf-8
 | 
						||
from __future__ import unicode_literals
 | 
						||
 | 
						||
import pytest
 | 
						||
 | 
						||
 | 
						||
@pytest.mark.parametrize(
 | 
						||
    "string,lemma",
 | 
						||
    [
 | 
						||
        ("evlerimizdeki", "ev"),
 | 
						||
        ("işlerimizi", "iş"),
 | 
						||
        ("biran", "biran"),
 | 
						||
        ("bitirmeliyiz", "bitir"),
 | 
						||
        ("isteklerimizi", "istek"),
 | 
						||
        ("karşılaştırmamızın", "karşılaştır"),
 | 
						||
        ("çoğulculuktan", "çoğulcu"),
 | 
						||
    ],
 | 
						||
)
 | 
						||
def test_tr_lemmatizer_lookup_assigns(tr_tokenizer, string, lemma):
 | 
						||
    tokens = tr_tokenizer(string)
 | 
						||
    assert tokens[0].lemma_ == lemma
 |