From 58f75abaca7fc6e3107783d3cccb9a678c88bd46 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 5 Jan 2015 05:53:08 +1100 Subject: [PATCH] * Fix unicode error in orth --- spacy/orth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/orth.py b/spacy/orth.py index 2400b38a6..7023f95c5 100644 --- a/spacy/orth.py +++ b/spacy/orth.py @@ -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