from typing import List
from typing import Dict


def get_sentence_indices_list(sentence_list: List[str]):
    """
    Args:
        sentence_list List[str]

    Returns:
        List of 'start' and 'end' indexes of sentences
    """

    sentence_indices_list: List[Dict] = []
    prev_end_idx = 0
    for sentence_ind, sentence in enumerate(sentence_list):
        if sentence_ind == 0:
            start_idx = 0
            end_idx = len(sentence)
        else:
            start_idx = prev_end_idx
            end_idx = prev_end_idx + len(sentence)
        prev_end_idx = end_idx
        sentence_indices_list.append({"sentence_start": start_idx, "sentence_end": end_idx})
    return sentence_indices_list