mirror of https://github.com/explosion/spaCy.git
* Enforce import of ujson in strings.pyx, because otherwise it's too slow
This commit is contained in:
parent
1ce5d5602d
commit
65934b7cd4
|
@ -17,10 +17,7 @@ try:
|
|||
except ImportError:
|
||||
import io
|
||||
|
||||
try:
|
||||
import ujson as json
|
||||
except ImportError:
|
||||
import json
|
||||
|
||||
|
||||
cpdef hash_t hash_string(unicode string) except 0:
|
||||
|
|
Loading…
Reference in New Issue