class_docstr: Mostly borrowed from <https://github.com/clarkkev/deep-coref/blob/master/evaluation.py>
class_docstr_tok: ["Mostly","borrowed","from","<","https",":","\/\/github.com\/clarkkev\/deep-coref\/blob\/master\/evaluation.py",">"]
code: def get_f1(self):
      precision = (
          0
          if self.precision_denominator == 0
          else self.precision_numerator
          / float(self.precision_denominator)
      )
      recall = (
          0
          if self.recall_denominator == 0
          else self.recall_numerator / float(self.recall_denominator)
      )
      return (
          0
          if precision + recall == 0
          else 2 * precision * recall / (precision + recall)
      )
  
imports: from __future__ import division
  from __future__ import absolute_import
  from collections import Counter
  from sklearn.utils.linear_assignment_ import linear_assignment
  import numpy
  import torch
  from allennlp.training.metrics.metric import Metric
label_desc: Use image node_id 3 for calling the Scorer obj's underlying member method code with example usage: obj.get_f1() and returns: unknown