def convert_ids_to_tokens(inv_vocab, ids):
    """Converts a sequence of ids into tokens using the vocab."""
    output = []
    for item in ids:
        output.append(inv_vocab[item])
    return output