mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			228 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			228 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from __future__ import unicode_literals
 | 
						|
import pytest
 | 
						|
 | 
						|
from spacy.en import English
 | 
						|
 | 
						|
def test_only_pre1():
 | 
						|
    EN = English()
 | 
						|
    assert len(EN("(")) == 1
 | 
						|
 | 
						|
 | 
						|
def test_only_pre2():
 | 
						|
    EN = English()
 | 
						|
    assert len(EN("((")) == 2
 |