import tensorflow as tf

    def input_layer(self):
        # data = np.loadtxt(self.params['vocab'], dtype=np.unicode, encoding=None)
        data = self.params["vocab_data"]
        mapping_strings = tf.Variable(data)
        vocab_words = tf.contrib.lookup.index_table_from_tensor(
            mapping_strings, num_oov_buckets=1
