From 225cc249c920471ff677cb69d8eefa4f289dd7c6 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 5 Nov 2017 14:42:46 +0100 Subject: [PATCH] Pass string path to numpy, to fix #1479 --- spacy/vectors.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/vectors.pyx b/spacy/vectors.pyx index a96913109..8b85bba9c 100644 --- a/spacy/vectors.pyx +++ b/spacy/vectors.pyx @@ -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),