nemo_curator.stages.text.io.writer.utils
nemo_curator.stages.text.io.writer.utils
Module Contents
Functions
API
Batch an iterable into lists of size n.
Parameters:
iterable
The iterable to batch
n
The size of the batch
Returns: Iterator[tuple[Any, ...]]
Iterator[tuple[…]]: An iterator of tuples, each containing n elements from the iterable
Create a deterministic hash from inputs.