diff --git a/spacy/strings.pyx b/spacy/strings.pyx index f69a144ee..9b1186747 100644 --- a/spacy/strings.pyx +++ b/spacy/strings.pyx @@ -13,6 +13,7 @@ SEPARATOR = '\n|-SEP-|\n' cpdef hash_t hash_string(unicode string) except 0: + # This should probably use Py_UCS4 API, but I can't in Python2.7 chars = string return hash64(chars, len(string) * sizeof(Py_UNICODE), 0)