mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			187 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			187 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from spacy.en import English
 | 
						|
 | 
						|
import pytest
 | 
						|
 | 
						|
NLP = English()
 | 
						|
 | 
						|
 | 
						|
def test_root():
 | 
						|
    tokens = NLP(u"i don't have other assistance")
 | 
						|
    for t in tokens:
 | 
						|
        assert t.dep != 0, t.orth_
 |