mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
Merge branch 'master' of https://github.com/yash1994/spaCy
This commit is contained in:
commit
6751af3e78
|
@ -116,7 +116,7 @@ def merge_boxes(boxes):
|
||||||
if merged is not None:
|
if merged is not None:
|
||||||
return merged.to_bytes()
|
return merged.to_bytes()
|
||||||
else:
|
else:
|
||||||
return b''
|
return b""
|
||||||
|
|
||||||
|
|
||||||
def pickle_box(box):
|
def pickle_box(box):
|
||||||
|
@ -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