Pass string path to numpy, to fix #1479

This commit is contained in:
Matthew Honnibal 2017-11-05 14:42:46 +01:00
parent 00435d8f0c
commit 225cc249c9

View File

@ -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),