(self)
return self.loss / self.n_words
compute cross entropy
compute cross entropy
compute cross entropy
def xent(self):
        """ compute cross entropy """
        return self.loss / self.n_words
def xent ( self ) : return self . loss / self . n_words