def ids_to_sentence(ids, id2word):
    """ Converts a sequence of ids to a sequence of symbols.

          ids: a list, indices for the padded sequence.
          id2word:  a dict, a mapping from ids to original symbols.

          result: a list of symbols.
    """

    return [id2word[i] for i in ids]