code: def rte_post_process(result):
      """对返回结果进行后处理, 清除\n等多余字符; 匹配(,,)格式; 获得头、尾实体和关系"""
  
      def clean(spt, i):
          try:
              s = spt[i]
          except IndexError:
              s = ""
          return s
  
      rst = result.replace("\n", "")
      matches = re.findall(RE_triple, rst)
      new_record = []
      for m in matches:
          spt = m.split(",")
          new_record.append(
              [clean(spt, 0), clean(spt, 1), clean(spt, 2)]
          )
      return new_record
  
file_path: DeepKE/example/triple/mt5/utils.py
imports: from datasets import Features, Value, Sequence
  import re
  from typing import List
  from copy import deepcopy
label_desc: Use image node_id 1 for calling a global function with example usage: rte_post_process(result) and returns: new_record, s