From 65934b7cd46587814c51bab6cb5be51e5551a084 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 4 Nov 2015 00:32:02 +1100 Subject: [PATCH] * Enforce import of ujson in strings.pyx, because otherwise it's too slow --- spacy/strings.pyx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spacy/strings.pyx b/spacy/strings.pyx index cf9c224e6..760d9bea1 100644 --- a/spacy/strings.pyx +++ b/spacy/strings.pyx @@ -17,10 +17,7 @@ try: except ImportError: import io -try: - import ujson as json -except ImportError: - import json +import ujson as json cpdef hash_t hash_string(unicode string) except 0: