from typing import Tuple


def split_segment_id(segment_id: str) -> Tuple[float, float, int]:
    """Split a segment ID to segment begin, segment end, and a running number.

    Args:
        segment_id (str): Segment ids are in the form session-001-2015-START-END[NUMBER] or
                        session-001-2015-START-END-NUMBER

    Returns:
        Tuple[float, float, int]: start, end, and number
    """
    if "[" in segment_id:
        _, begin, end = segment_id.rsplit("-", 2)
        end, number = end.split("[")
        number = number.replace("]", "")
    else:
        _, begin, end, number = segment_id.rsplit("-", 3)
    return float(begin) / 100.0, float(end) / 100.0, int(number)