elm.ords.utilities.parsing.merge_overlapping_texts

merge_overlapping_texts(text_chunks, n=300)[source]

Merge chunks fo text by removing any overlap.

Parameters:
  • text_chunks (iterable of str) – Iterable containing text chunks which may or may not contain consecutive overlapping portions.

  • n (int, optional) – Number of characters to check at the beginning of each message for overlap with the previous message. By default, 100.

Returns:

str – Merged text.