modules.applications.optimization.salbp.salbp.split_lines_to_areas

split_lines_to_areas(lines: list[str], token_indices: dict[str, int]) dict[str, list[str]]

Group the list into keywords and their corresponding values.

Each group is introduced by a keyword and ends when another keyword follows.

Parameters:
  • lines -- List of lines

  • token_indices -- Keywords and their position in lines

Returns:

Dictionary with keyword and corresponding values