'Convert id to words and writing results.
Args:
article: The original article string.
abstract: The human (correct) abstract string.
output_ids: The abstract word ids output by machine.'

def _DecodeBatch(self, article, abstract, output_ids):

    decoded_output = '    '.join(data.Ids2Words(output_ids, self._vocab))
    end_p = decoded_output.find(data.SENTENCE_END, 0)
    if (end_p != (-1)):
        decoded_output = decoded_output[:end_p]
    tf.logging.info('article:        %s', article)
    tf.logging.info('abstract:    %s', abstract)
    tf.logging.info('decoded:        %s', decoded_output)
    self._decode_io.Write(abstract, decoded_output.strip())
