mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-13 05:07:03 +03:00
Auto-format and fix typo and consistency
This commit is contained in:
parent
931e96b6c7
commit
0f7fe5e7a7
|
@ -40,6 +40,7 @@ class DocBin(object):
|
|||
A notable downside to this format is that you can't easily extract just one
|
||||
document from the pallet.
|
||||
"""
|
||||
|
||||
def __init__(self, attrs=None, store_user_data=False):
|
||||
"""Create a DocBin object, to hold serialized annotations.
|
||||
|
||||
|
@ -145,8 +146,8 @@ def merge_bins(bins):
|
|||
return b""
|
||||
|
||||
|
||||
def pickle_bin(docbin):
|
||||
return (unpickle_bin, (bin_.to_bytes(),))
|
||||
def pickle_bin(doc_bin):
|
||||
return (unpickle_bin, (doc_bin.to_bytes(),))
|
||||
|
||||
|
||||
def unpickle_bin(byte_string):
|
||||
|
|
Loading…
Reference in New Issue
Block a user