class_docstr: implements start and end loss of a span e.g. for Question Answering.
code: def __init__(
      self,
  ):
      super().__init__()
  
file_path: NeMo/nemo/collections/common/losses/spanning_loss.py
imports: from torch import nn
  from nemo.core.classes import Loss, typecheck
  from nemo.core.neural_types import ChannelType, LogitsType, LossType, NeuralType
label_desc: Use image node_id 3 to create a new SpanningLoss object from inherited base classes: Loss with example: obj = SpanningLoss()