code: def __init__(self, eos_token_id, num_labels, target_type="word"):
      self.eos_token_id = eos_token_id
      self.num_labels = num_labels
      self.word_start_index = num_labels + 2
  
      self.fp = 0
      self.tp = 0
      self.fn = 0
      self.em = 0
      self.total = 0
      self.target_type = target_type
  
file_path: DeepKE/src/deepke/name_entity_re/few_shot/module/metrics.py
imports: import numpy
label_desc: Use image node_id 1 to create a new Seq2SeqSpanMetric object from inherited base classes: object with example: obj = Seq2SeqSpanMetric(eos_token_id, num_labels, target_type)