class_docstr: This :class:`Metric` takes the best span string computed by a model, along with the answer
  strings labeled in the data, and computed exact match and F1 score using the official SQuAD
  evaluation script.
docstr: Returns
  -------
  Average exact match and F1 score (in that order) as computed by the official SQuAD script
  over all inputs.
docstr_tok: ["Returns","--","--","--","-","Average","exact","match","and","F1","score","(","in","that","order",")","as","computed","by","the","official","SQuAD","script","over","all","inputs","."]
code: def get_metric(self, reset=False):
      """
      Returns
      -------
      Average exact match and F1 score (in that order) as computed by the official SQuAD script
      over all inputs.
      """
      exact_match = (
          self._total_em / self._count if self._count > 0 else 0
      )
      f1_score = self._total_f1 / self._count if self._count > 0 else 0
      if reset:
          self.reset()
      return exact_match, f1_score
  
file_path: magnitude/pymagnitude/third_party/allennlp/training/metrics/squad_em_and_f1.py
imports: from __future__ import division
  from __future__ import absolute_import
  from allennlp.common import squad_eval
  from allennlp.training.metrics.metric import Metric
label_desc: Use image node_id 3 for calling the SquadEmAndF1 obj's underlying member method code with example usage: obj.get_metric(reset) and returns: exact_match,  f1_score