From a425808bd4c9442ce39144692cb445bc9f1b3cb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danie=CC=88l=20de=20Kok?= Date: Tue, 18 Apr 2023 17:38:49 +0200 Subject: [PATCH] Add docstring --- spacy/training/loop.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spacy/training/loop.py b/spacy/training/loop.py index 2fae21368..8a0c9495f 100644 --- a/spacy/training/loop.py +++ b/spacy/training/loop.py @@ -565,6 +565,8 @@ def create_distill_batches( batcher: Callable[[Iterable[Example]], Iterable[List[Example]]], max_epochs: int, ): + """Create distillation batches. In contrast to training, the corpus + is normally too large to load into memory and shuffle.""" epoch = 0 while max_epochs < 1 or epoch != max_epochs: examples = corpus(nlp)