mirror of https://github.com/explosion/spaCy.git
Get msgpack and msgpack_numpy via Thinc, to avoid potential version conflicts
This commit is contained in:
parent
b5098079d8
commit
8308bbc617
|
@ -11,5 +11,3 @@ dill>=0.2,<0.3
|
|||
regex==2017.4.5
|
||||
pytest>=3.0.6,<4.0.0
|
||||
mock>=2.0.0,<3.0.0
|
||||
msgpack-python==0.5.4
|
||||
msgpack-numpy==0.4.1
|
||||
|
|
4
setup.py
4
setup.py
|
@ -194,9 +194,7 @@ def setup_package():
|
|||
'pathlib',
|
||||
'ujson>=1.35',
|
||||
'dill>=0.2,<0.3',
|
||||
'regex==2017.4.5',
|
||||
'msgpack-python==0.5.4',
|
||||
'msgpack-numpy==0.4.1'],
|
||||
'regex==2017.4.5'],
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
'Environment :: Console',
|
||||
|
|
|
@ -8,7 +8,9 @@ cimport numpy as np
|
|||
import cytoolz
|
||||
from collections import OrderedDict
|
||||
import ujson
|
||||
import msgpack
|
||||
|
||||
from .util import msgpack
|
||||
from .util import msgpack_numpy
|
||||
|
||||
from thinc.api import chain
|
||||
from thinc.v2v import Affine, SELU, Softmax
|
||||
|
|
|
@ -23,9 +23,10 @@ from .symbols import ORTH
|
|||
from .compat import cupy, CudaStream, path2str, basestring_, input_, unicode_
|
||||
from .compat import import_file
|
||||
|
||||
import msgpack
|
||||
import msgpack_numpy
|
||||
msgpack_numpy.patch()
|
||||
# Import these directly from Thinc, so that we're sure we always have the
|
||||
# same version.
|
||||
from thinc.neural._classes.model import msgpack
|
||||
from thinc.neural._classes.model import msgpack_numpy
|
||||
|
||||
|
||||
LANGUAGES = {}
|
||||
|
|
|
@ -3,9 +3,10 @@ from __future__ import unicode_literals
|
|||
|
||||
import numpy
|
||||
from collections import OrderedDict
|
||||
import msgpack
|
||||
import msgpack_numpy
|
||||
msgpack_numpy.patch()
|
||||
|
||||
from .util import msgpack
|
||||
from .util import msgpack_numpy
|
||||
|
||||
cimport numpy as np
|
||||
from thinc.neural.util import get_array_module
|
||||
from thinc.neural._classes.model import Model
|
||||
|
|
Loading…
Reference in New Issue