mirror of https://github.com/explosion/spaCy.git
Pass string path to numpy, to fix #1479
This commit is contained in:
parent
00435d8f0c
commit
225cc249c9
|
@ -358,7 +358,7 @@ cdef class Vectors:
|
|||
def load_vectors(path):
|
||||
xp = Model.ops.xp
|
||||
if path.exists():
|
||||
self.data = xp.load(path)
|
||||
self.data = xp.load(str(path))
|
||||
|
||||
serializers = OrderedDict((
|
||||
('key2row', load_key2row),
|
||||
|
|
Loading…
Reference in New Issue