From a2ad6cf2e0b5f4da96f91146a23d84eff4c34f13 Mon Sep 17 00:00:00 2001 From: kadarakos Date: Thu, 26 Jan 2023 11:36:07 +0000 Subject: [PATCH] clarification --- website/docs/api/top-level.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/api/top-level.mdx b/website/docs/api/top-level.mdx index 9748719d7..4ed290b6c 100644 --- a/website/docs/api/top-level.mdx +++ b/website/docs/api/top-level.mdx @@ -771,11 +771,11 @@ themselves, or be discarded if `discard_oversize` is set to `True`. The argument > get_length = null > ``` -Create a batcher that creates batches of the specified size. +Create a minibatches of a fixed number of documents specified by `size`. | Name | Description | | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `size` | The target number of items per batch. Can also be a block referencing a schedule, e.g. [`compounding`](https://thinc.ai/docs/api-schedules/#compounding). ~~Union[int, Sequence[int]]~~ | +| `size` | The target number of documents per batch. Can also be a block referencing a schedule, e.g. [`compounding`](https://thinc.ai/docs/api-schedules/#compounding). ~~Union[int, Sequence[int]]~~ | | `get_length` | Optional function that receives a sequence item and returns its length. Defaults to the built-in `len()` if not set. ~~Optional[Callable[[Any], int]]~~ | | **CREATES** | The batcher that takes an iterable of items and returns batches. ~~Callable[[Iterable[Any]], Iterable[List[Any]]]~~ |