mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
Fix _serialize
This commit is contained in:
parent
a388888074
commit
bd3c3f342b
|
@ -124,10 +124,10 @@ def pickle_box(box):
|
||||||
|
|
||||||
|
|
||||||
def unpickle_box(byte_string):
|
def unpickle_box(byte_string):
|
||||||
return Box().from_bytes(byte_string)
|
return DocBox().from_bytes(byte_string)
|
||||||
|
|
||||||
|
|
||||||
copy_reg.pickle(Box, pickle_box, unpickle_box)
|
copy_reg.pickle(DocBox, pickle_box, unpickle_box)
|
||||||
# Compatibility, as we had named it this previously.
|
# Compatibility, as we had named it this previously.
|
||||||
Binder = DocBox
|
Binder = DocBox
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user