BERT_rationale_benchmark/models/pipeline/pipeline_utils.py
def _grouper(iterable, n, fillvalue=None):
    "Collect data into fixed-length chunks or blocks"
    # grouper('ABCDEFG', 3, 'x') --> ABC DEF Gxx"
    args = [iter(iterable)] * n
    return itertools.zip_longest(*args, fillvalue=fillvalue)
Collect data into fixed-length chunks or blocks
Collect data into fixed-length chunks or blocks
Collect data into fixed - length chunks or blocks
def _grouper(iterable, n, fillvalue=None):
    args = [iter(iterable)] * n
    return itertools.zip_longest(*args, fillvalue=fillvalue)
def _grouper ( iterable , n , fillvalue = None ) : args = [ iter ( iterable ) ] * n return itertools . zip_longest ( * args , fillvalue = fillvalue )
Collect data into fixed-length chunks or blocks
Collect data into fixed - length chunks or blocks
"Collect data into fixed-length chunks or blocks" # grouper('ABCDEFG', 3, 'x') --> ABC DEF Gxx"
iterable
n
fillvalue