mirror of https://github.com/explosion/spaCy.git
* 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