mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	* Fix unicode error in orth
This commit is contained in:
		
							parent
							
								
									4e085d5166
								
							
						
					
					
						commit
						58f75abaca
					
				| 
						 | 
				
			
			@ -155,5 +155,5 @@ def word_shape(string):
 | 
			
		|||
def asciied(string):
 | 
			
		||||
    ascii_string = unidecode(string)
 | 
			
		||||
    if not ascii_string:
 | 
			
		||||
        return '???'
 | 
			
		||||
    return ascii_string.decode('ascii')
 | 
			
		||||
        return b'???'
 | 
			
		||||
    return ascii_string
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user