code: def __init__(self, eps=1e-5):
      super(SpanMetric, self).__init__()
  
      self.tp = 0.0
      self.pred = 0.0
      self.gold = 0.0
      self.eps = eps
  
imports: from collections import Counter
label_desc: Use image node_id 1 to create a new SpanMetric object from inherited base classes: Metric with example: obj = SpanMetric(eps)