class_docstr: Compute precision, recall, F-measure for each class            of a span-based multi-class problem.
class_docstr_tok: ["Compute","precision",",","recall",",","F-measure","for","each","class","of","a","span-based","multi-class","problem","."]
docstr: This method accumulates TPs, FPs, and FNs for each span label.
  
  :param gold: A list of gold entities, each defined by a dictionary                with `type` and `filler` keys.
  :param prediction: A list of gold entities, each defined by a                dictionary with `type` and `filler` keys.
docstr_tok: ["This","method","accumulates","TPs",",","FPs",",","and","FNs","for","each","span","label",".",":","param","gold",":","A","list","of","gold","entities",",","each","defined","by","a","dictionary","with","`","type","`","and","`","filler","`","keys",".",":","param","prediction",":","A","list","of","gold","entities",",","each","defined","by","a","dictionary","with","`","type","`","and","`","filler","`","keys","."]
code: def __call__(
      self, gold: List[Dict[str, str]], prediction: List[Dict[str, str]]
  ) -> None:
      """
          This method accumulates TPs, FPs, and FNs for each span label.
  
          :param gold: A list of gold entities, each defined by a dictionary\
                  with `type` and `filler` keys.
          :param prediction: A list of gold entities, each defined by a\
                  dictionary with `type` and `filler` keys.
          """
      gold = copy(gold)
      for entity in prediction:
          if entity in gold:
              self._true_positives[entity["type"]] += 1
              gold.remove(entity)
          else:
              self._false_positives[entity["type"]] += 1
      # These spans weren't predicted.
      for entity in gold:
          self._false_negatives[entity["type"]] += 1
  
imports: from collections import defaultdict
  from copy import copy
  from typing import Dict, List, Set, Tuple
  from .distance import Distance
label_desc: Use image node_id 1 for calling the SpanFMeasure obj's underlying member method code with example usage: obj.__call__(gold, prediction) without return types