mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
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):
|
def load_vectors(path):
|
||||||
xp = Model.ops.xp
|
xp = Model.ops.xp
|
||||||
if path.exists():
|
if path.exists():
|
||||||
self.data = xp.load(path)
|
self.data = xp.load(str(path))
|
||||||
|
|
||||||
serializers = OrderedDict((
|
serializers = OrderedDict((
|
||||||
('key2row', load_key2row),
|
('key2row', load_key2row),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user