mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-06 21:03:07 +03:00
fixes
This commit is contained in:
parent
4220149511
commit
7b22b714dc
|
@ -26,7 +26,7 @@ def create_docbin_reader(
|
||||||
max_length: int = 0,
|
max_length: int = 0,
|
||||||
limit: int = 0,
|
limit: int = 0,
|
||||||
augmenter: Optional[Callable] = None,
|
augmenter: Optional[Callable] = None,
|
||||||
) -> Callable[["Language"], Iterable[Doc]]:
|
) -> Callable[["Language"], Iterable[Example]]:
|
||||||
if path is None:
|
if path is None:
|
||||||
raise ValueError(Errors.E913)
|
raise ValueError(Errors.E913)
|
||||||
util.logger.debug("Loading corpus from path: %s", path)
|
util.logger.debug("Loading corpus from path: %s", path)
|
||||||
|
@ -63,7 +63,7 @@ def create_plain_text_reader(
|
||||||
path: Optional[Path],
|
path: Optional[Path],
|
||||||
min_length: int = 0,
|
min_length: int = 0,
|
||||||
max_length: int = 0,
|
max_length: int = 0,
|
||||||
) -> Callable[["Language"], Iterable[Example]]:
|
) -> Callable[["Language"], Iterable[Doc]]:
|
||||||
"""Iterate Example objects from a file or directory of plain text
|
"""Iterate Example objects from a file or directory of plain text
|
||||||
UTF-8 files with one line per doc.
|
UTF-8 files with one line per doc.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user