Merge pull request #5521 from svlandeg/bugfix/vectors-from-disk

fix deserialization order
This commit is contained in:
Matthew Honnibal 2020-05-30 18:38:23 +02:00 committed by GitHub
commit 758a4b154d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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