mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
Auto-format code with black (#9664)
Co-authored-by: explosion-bot <explosion-bot@users.noreply.github.com>
This commit is contained in:
parent
24cdd4c88e
commit
67d8c8a081
|
@ -41,7 +41,10 @@ def create_docbin_reader(
|
||||||
|
|
||||||
@util.registry.readers("spacy.JsonlCorpus.v1")
|
@util.registry.readers("spacy.JsonlCorpus.v1")
|
||||||
def create_jsonl_reader(
|
def create_jsonl_reader(
|
||||||
path: Optional[Union[str, Path]], min_length: int = 0, max_length: int = 0, limit: int = 0
|
path: Optional[Union[str, Path]],
|
||||||
|
min_length: int = 0,
|
||||||
|
max_length: int = 0,
|
||||||
|
limit: int = 0,
|
||||||
) -> Callable[["Language"], Iterable[Example]]:
|
) -> Callable[["Language"], Iterable[Example]]:
|
||||||
return JsonlCorpus(path, min_length=min_length, max_length=max_length, limit=limit)
|
return JsonlCorpus(path, min_length=min_length, max_length=max_length, limit=limit)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user