mirror of https://github.com/explosion/spaCy.git
Merge pull request #5521 from svlandeg/bugfix/vectors-from-disk
fix deserialization order
This commit is contained in:
commit
758a4b154d
|
@ -425,9 +425,9 @@ cdef class Vectors:
|
||||||
self.data = xp.load(str(path))
|
self.data = xp.load(str(path))
|
||||||
|
|
||||||
serializers = OrderedDict((
|
serializers = OrderedDict((
|
||||||
("key2row", load_key2row),
|
|
||||||
("keys", load_keys),
|
|
||||||
("vectors", load_vectors),
|
("vectors", load_vectors),
|
||||||
|
("keys", load_keys),
|
||||||
|
("key2row", load_key2row),
|
||||||
))
|
))
|
||||||
util.from_disk(path, serializers, [])
|
util.from_disk(path, serializers, [])
|
||||||
self._sync_unset()
|
self._sync_unset()
|
||||||
|
|
Loading…
Reference in New Issue