mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Merge branch 'develop' of https://github.com/explosion/spaCy into develop
This commit is contained in:
commit
217e7891cd
|
@ -660,7 +660,7 @@ cdef class Doc:
|
|||
"""
|
||||
with path.open('rb') as file_:
|
||||
bytes_data = file_.read()
|
||||
self.from_bytes(bytes_data, **exclude)
|
||||
return self.from_bytes(bytes_data, **exclude)
|
||||
|
||||
def to_bytes(self, **exclude):
|
||||
"""Serialize, i.e. export the document contents to a binary string.
|
||||
|
|
Loading…
Reference in New Issue
Block a user