mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
fix deserialization order
This commit is contained in:
parent
64adda3202
commit
15134ef611
|
@ -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
Block a user