class_docstr: A `SpanField` is a pair of inclusive, zero-indexed (start, end) indices into a
  :class:`~allennlp.data.fields.sequence_field.SequenceField`, used to represent a span of text.
  Because it's a pair of indices into a :class:`SequenceField`, we take one of those as input
  to make the span's dependence explicit and to validate that the span is well defined.
  
  # Parameters
  
  span_start : `int`, required.
      The index of the start of the span in the :class:`SequenceField`.
  span_end : `int`, required.
      The inclusive index of the end of the span in the :class:`SequenceField`.
  sequence_field : `SequenceField`, required.
      A field containing the sequence that this `SpanField` is a span inside.
class_docstr_tok: ["A","`","SpanField","`","is","a","pair","of","inclusive",",","zero-indexed","(","start",",","end",")","indices","into","a",":","class",":","`","~allennlp.data.fields.sequence_field.SequenceField","`",",","used","to","represent","a","span","of","text",".","Because","it","'s","a","pair","of","indices","into","a",":","class",":","`","SequenceField","`",",","we","take","one","of","those","as","input","to","make","the","span","'s","dependence","explicit","and","to","validate","that","the","span","is","well","defined",".","#","Parameters","span_start",":","`","int","`",",","required",".","The","index","of","the","start","of","the","span","in","the",":","class",":","`","SequenceField","`",".","span_end",":","`","int","`",",","required",".","The","inclusive","index","of","the","end","of","the","span","in","the",":","class",":","`","SequenceField","`",".","sequence_field",":","`","SequenceField","`",",","required",".","A","field","containing","the","sequence","that","this","`","SpanField","`","is","a","span","inside","."]
code: def get_padding_lengths(self) -> Dict[str, int]:
      return {}
  
file_path: allennlp/allennlp/data/fields/span_field.py
imports: from typing import Dict, Tuple
  import torch
  from allennlp.data.fields.field import Field
  from allennlp.data.fields.sequence_field import SequenceField
label_desc: Use image node_id 2 for calling the SpanField obj's underlying member method code with example usage: obj.get_padding_lengths() and returns: dict