allennlp.modules.softmax_loss#

SoftmaxLoss#

SoftmaxLoss(self, num_words:int, embedding_dim:int) -> None

Given some embeddings and some targets, applies a linear layer to create logits over possible words and then returns the negative log likelihood.