mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			417 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			417 B
		
	
	
	
		
			Python
		
	
	
	
	
	
# coding: utf8
 | 
						|
from __future__ import unicode_literals
 | 
						|
 | 
						|
from spacy.lang.hi import Hindi
 | 
						|
 | 
						|
 | 
						|
def test_issue3625():
 | 
						|
    """Test that default punctuation rules applies to hindi unicode characters"""
 | 
						|
    nlp = Hindi()
 | 
						|
    doc = nlp("hi. how हुए. होटल, होटल")
 | 
						|
    expected = ["hi", ".", "how", "हुए", ".", "होटल", ",", "होटल"]
 | 
						|
    assert [token.text for token in doc] == expected
 |