code: def get_metric(self):
      from seqeval.metrics import (
          f1_score,
          precision_score,
          recall_score,
      )
  
      metrics = {
          "precision": precision_score(self.gt_list, self.pred_list),
          "recall": recall_score(self.gt_list, self.pred_list),
          "hmean": f1_score(self.gt_list, self.pred_list),
      }
      self.reset()
      return metrics
  
file_path: PaddleOCR/ppocr/metrics/vqa_token_ser_metric.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import paddle
label_desc: Use image node_id 3 for calling the VQASerTokenMetric obj's underlying member method code with example usage: obj.get_metric() and returns: metrics