mirror of https://github.com/explosion/spaCy.git
Add missing return in Doc.from_disk() (closes #1330)
This commit is contained in:
parent
c013e5996f
commit
2480f8f521
|
@ -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