import tensorflow as tf



class CovCopyAttenGen:
    def __init__(self, placeholders, options, vocab):
        self.options = options
        self.vocab = vocab
        self.cell = tf.contrib.rnn.LSTMCell(
                    options.gen_hidden_size,
                    initializer=tf.random_uniform_initializer(-0.1, 0.1, seed=113),
                    state_is_tuple=True)
        self.placeholders = placeholders

        with tf.variable_scope("embedding"), tf.device('/cpu:0'):
            self.embedding = tf.get_variable('word_embedding', trainable=(options.fix_word_vec==False),
                                    initializer=tf.constant(self.vocab.word_vecs), dtype=tf.float32)

