class_docstr: Softmax classifier for sentence-level relation extraction.
code: def logit_to_score(self, logits):
      return torch.softmax(logits, -1)
  
file_path: OpenNRE/opennre/model/softmax_nn.py
imports: import torch
  from torch import nn, optim
  from .base_model import SentenceRE
label_desc: Use image node_id 4 for calling the SoftmaxNN obj's underlying member method code with example usage: obj.logit_to_score(logits) and returns: torch