import tensorflow as tf

            output_t = linear([cell_output] + [context_t], options.gen_hidden_size, True)

        with tf.variable_scope('output_projection'):
            w = tf.get_variable('w', [options.gen_hidden_size, vocab.vocab_size+1], dtype=tf.float32)
            b = tf.get_variable('b', [vocab.vocab_size +1], dtype=tf.float32)
            # vocab_scores is the vocabulary distribution before applying softmax.
