def indices_to_sentence(indices, vocabulary):
    """
    Turn a list of indices of a vocabulary into a sentence.
    """
    y = indices
    words = [vocabulary[idx] for idx in y]
    return " ".join(words)