docstr: return metrics {
           'acc': 0,
           'norm_edit_dis': 0,
      }
docstr_tok: ["return","metrics","{","'acc","'",":","0",",","'norm_edit_dis","'",":","0",",","}"]
code: def get_metric(self):
      """
      return metrics {
               'acc': 0,
               'norm_edit_dis': 0,
          }
      """
      acc = 1.0 * self.correct_num / (self.all_num + self.eps)
      norm_edit_dis = 1 - self.norm_edit_dis / (self.all_num + self.eps)
      self.reset()
      return {"acc": acc, "norm_edit_dis": norm_edit_dis}
  
imports: from rapidfuzz.distance import Levenshtein
  from difflib import SequenceMatcher
  import numpy
  import string
label_desc: Use image node_id 4 for calling the RecMetric obj's underlying member method code with example usage: obj.get_metric() and returns: dict