mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Fix json dependency
This commit is contained in:
parent
010f846d5f
commit
ae7c728c5f
|
@ -3,8 +3,9 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
from libc.string cimport memset
|
||||
import ujson as json
|
||||
import srsly
|
||||
|
||||
from .strings import get_string_id
|
||||
from . import symbols
|
||||
from .attrs cimport POS, IS_SPACE
|
||||
from .attrs import LEMMA, intify_attrs
|
||||
|
@ -232,7 +233,7 @@ cdef class Morphology:
|
|||
tag_ptr = <RichTagC*>self.tags.get(key)
|
||||
if tag_ptr != NULL:
|
||||
json_tags.append(tag_to_json(tag_ptr[0]))
|
||||
return json.dumps(json_tags)
|
||||
return srsly.json_dumps(json_tags)
|
||||
|
||||
def from_bytes(self, byte_string):
|
||||
raise NotImplementedError
|
||||
|
|
Loading…
Reference in New Issue
Block a user