mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-13 01:32:32 +03:00
Add docstring
This commit is contained in:
parent
b9324505d8
commit
a425808bd4
|
@ -565,6 +565,8 @@ def create_distill_batches(
|
||||||
batcher: Callable[[Iterable[Example]], Iterable[List[Example]]],
|
batcher: Callable[[Iterable[Example]], Iterable[List[Example]]],
|
||||||
max_epochs: int,
|
max_epochs: int,
|
||||||
):
|
):
|
||||||
|
"""Create distillation batches. In contrast to training, the corpus
|
||||||
|
is normally too large to load into memory and shuffle."""
|
||||||
epoch = 0
|
epoch = 0
|
||||||
while max_epochs < 1 or epoch != max_epochs:
|
while max_epochs < 1 or epoch != max_epochs:
|
||||||
examples = corpus(nlp)
|
examples = corpus(nlp)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user