Cell Splitter Based on Maximum String Length

This component allows to slipt a given column of type string into as many columns as required based on a maximum number of characters per substring. It has the advantage of preserving the integrity of words and pontuation marks so sentences are only split at space positions between words.

Annotations and comments
  • Split them by blank
  • Loop over all the Text Cells to Split into shorter sentences
  • Append New Columns to Initial Table
  • Filter In only the Text Column to Split
  • Filter In only the Text Columns
  • Select here which column content to split into several columns
  • Split Column Based on Maximum String Length Input Node
  • Split Column Based on Maximum String Length Output Node
  • Aggregate all words separated by blanks. You get at this level: As many rows with the initial sentence split into coherent subsentences without chopped words
  • Select here which maximum number of characters you would like per split sentence
  • Variable Modulo based on math FLOOR function
  • Set empty Cells as Strings of zero Characters
  • Cumulative sum of word lengths
  • Set The Split Sentence Counter as RowID
  • Words length
  • Transpose to have Split Sentences in Column
  • Ungroup the previous list of words

Input Ports

Icon
A table containing at least one column of type string.

Output Ports

Icon
The input table with as many as extra columns needed to split the strings into smaller strings based on a chosen maximum length.

Nodes

Extensions

Links