class_docstr: Qa Evaluator. Now, we support metrics `'bleu'`
      
class_docstr_tok: ["Qa","Evaluator",".","Now",",","we","support","metrics","`","'bleu","'","`"]
code: def _calc_metrics_info(self, generate_corpus, reference_corpus):
      results = {"em": [], "f1": []}
  
      for gen, refs in zip(
          generate_corpus.tokenized_text,
          reference_corpus.tokenized_text,
      ):
          em = self._metric_max_over_ground_truths(
              self._exact_match_score, gen, refs
          )
          f1 = self._metric_max_over_ground_truths(
              self._f1_score, gen, refs
          )
          results["em"].append(em * 100)
          results["f1"].append(f1 * 100)
  
      return results
  
file_path: TextBox/textbox/evaluator/qa_evaluator.py
imports: import string
  import re
  import numpy
  from .abstract_evaluator import AbstractEvaluator
  from collections import Counter
label_desc: Use image node_id 6 for calling the QaEvaluator obj's underlying member method code with example usage: obj._calc_metrics_info(generate_corpus, reference_corpus) and returns: results