mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			218 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			218 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from __future__ import unicode_literals
 | 
						|
 | 
						|
 | 
						|
from spacy.orth import is_punct
 | 
						|
 | 
						|
 | 
						|
def test_comma():
 | 
						|
    assert is_punct(',')
 | 
						|
 | 
						|
 | 
						|
def test_space():
 | 
						|
    assert not is_punct(' ')
 | 
						|
 | 
						|
 | 
						|
def test_letter():
 | 
						|
    assert not is_punct('a')
 |