import tensorflow as tf

    logits = tf.nn.xw_plus_b(tweet_embedding, hidden, bias)
    self.probs = tf.nn.softmax(logits)

    self._xent = tf.nn.softmax_cross_entropy_with_logits(logits, self.y)
    self.cost = tf.reduce_mean(self.example_weights * self._xent)

