elm.utilities.parse.is_multi_col

is_multi_col(text, separator='    ', threshold_ratio=0.35)[source]

Does the text look like it has multiple vertical text columns?

Parameters:
  • text (str) – Input text, which may or may not contain multiple vertical columns.

  • separator (str) – Heuristic split string to look for spaces between columns

  • threshold_ratio (float) – Portion of lines containing the separator at which point the text should be classified as multi-column.

Returns:

out (bool) – True if more than one vertical text column