mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Fix doc pickling
This commit is contained in:
parent
8ca97f32a3
commit
32a8564c79
|
@ -919,7 +919,7 @@ cdef int set_children_from_heads(TokenC* tokens, int length) except -1:
|
|||
|
||||
|
||||
def pickle_doc(doc):
|
||||
bytes_data = doc.to_bytes(exclude='vocab')
|
||||
bytes_data = doc.to_bytes(vocab=False)
|
||||
return (unpickle_doc, (doc.vocab, doc.user_data, bytes_data))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user