mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-04 03:43:09 +03:00
fix typing of PlainTextCorpus
This commit is contained in:
parent
7b22b714dc
commit
66a5ced99b
|
@ -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[Doc]]:
|
) -> Callable[["Language"], Iterable[Example]]:
|
||||||
"""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