def bbox_str_to_token_list(
    seq: str, splitter: tk.pre_tokenizers.PreTokenizer = None
) -> List[Tuple[int, int, int, int]]:
    """
    Note the out could be an empty list
    """

    seq = seq.split("<eos>")[0]

    token_black_list = ["<eos>", "<pad>", *TASK_TOKENS]
    for i in token_black_list:
        seq = seq.replace(i, "")

    if not splitter:
        splitter = tk.pre_tokenizers.Split(pattern=" ", behavior="removed")

    seq = splitter.pre_tokenize_str(seq)
    int_seq = [int(i[0].split("-")[1]) for i in seq]

    rounded_seq_len = len(int_seq) // 4 * 4
    out = [tuple(int_seq[i : i + 4]) for i in range(0, rounded_seq_len, 4)]
    return out

    Note the out could be an empty list
    
src/openparse/tables/unitable/utils.py