Fix doc pickling

This commit is contained in:
Matthew Honnibal 2017-10-17 18:20:24 +02:00
parent 8ca97f32a3
commit 32a8564c79

View File

@ -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))