def _find_end_character_mapping(offset_mapping, offset):
    """assumes sorted offset_mapping. unless this was modified 
       this will be the default from the tokenizer
    """
    # if the max length is bigger we just return the last index
    if offset >= max(offset_mapping[-1]):
        return [offset_mapping[-1]]
    return [ind for ind in offset_mapping if _lies_between(ind, offset)]
assumes sorted offset_mapping. unless this was modified 
       this will be the default from the tokenizer
    
examples/GPT-examples/utilities.py