modelzoo.transformers.data_processing.utils.split_list#

modelzoo.transformers.data_processing.utils.split_list(l, n)[source]#

Splits list/string into n sized chunks.

Parameters
  • l (List[str]) – List or string to split.

  • n (int) – Number of chunks to split to.

Returns List[List]

List of lists containing split list/string.