def truncate_text(token_list, max_len):
    """
    cutting tokens that exceeds the max_len for each input sentence

    INPUT:
        token_list: a list of string with variable length
        max_len: maximum number of tokens in the text
    OUTPUT:
        a list of string with length <= max_len
    """
    return token_list[:max_len]