mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			275 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			275 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from __future__ import unicode_literals
 | 
						|
import pytest
 | 
						|
 | 
						|
from spacy.en import English
 | 
						|
from spacy.parts_of_speech import ADV
 | 
						|
 | 
						|
 | 
						|
@pytest.fixture
 | 
						|
def nlp():
 | 
						|
    return English()
 | 
						|
 | 
						|
 | 
						|
def test_prob(nlp):
 | 
						|
    tokens = nlp(u'Give it back')
 | 
						|
    give = tokens[0]
 | 
						|
    assert give.prob != 0
 |