mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 16:22:29 +03:00
Update docstring.
This commit is contained in:
parent
b4c891e452
commit
1c2b8b07fb
|
@ -138,6 +138,7 @@ def test_serialize_subclassed_kb():
|
||||||
util.to_disk(path, serialize, exclude)
|
util.to_disk(path, serialize, exclude)
|
||||||
|
|
||||||
def from_disk(self, path, exclude: Iterable[str] = SimpleFrozenList()):
|
def from_disk(self, path, exclude: Iterable[str] = SimpleFrozenList()):
|
||||||
|
"""We overwrite InMemoryLookupKB.to_disk() to ensure that self.custom_field is loaded as well."""
|
||||||
path = ensure_path(path)
|
path = ensure_path(path)
|
||||||
if not path.exists():
|
if not path.exists():
|
||||||
raise ValueError(Errors.E929.format(loc=path))
|
raise ValueError(Errors.E929.format(loc=path))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user