primeqa.ir.dense.colbert_top.colbert.utils.utils.grouper#
- primeqa.ir.dense.colbert_top.colbert.utils.utils.grouper(iterable, n, fillvalue=None)#
- Collect data into fixed-length chunks or blocks
Example: grouper(‘ABCDEFG’, 3, ‘x’) –> ABC DEF Gxx” Source: https://docs.python.org/3/library/itertools.html#itertools-recipes