code: def eea_post_process1_zh(self, text, result):
      def clean_type(spt, i):
          try:
              s = spt[i].strip()
          except IndexError:
              s = ""
          if i == 0 and len(s) != 0:
              s = s.replace("事件触发词是", "")
          if i == -1 and len(s) != 0:
              s = s.replace("事件类型是", "")
          return s
  
      def clean_arg(spt, i):
          try:
              s = spt[i].strip()
          except IndexError:
              s = ""
          if i == 0 and len(s) != 0:
              s = s.replace("事件论元是", "")
          if i == -1 and len(s) != 0:
              s = s.replace("论元角色是", "")
          return s
  
      rst = self.replace_nomiss(result)
      matches = rst.split("\n\n")
      new_record = []
      for m in matches:
          if m.strip() == self.NAN:
              continue
          spt = m.split("\n")
          type_spt = spt[0].split(",")
          trigger = clean_type(type_spt, 0)
          event_type = clean_type(type_spt, -1)
          argument_spt = spt[1].split(";")
          args = []
          for arg in argument_spt:
              arg = arg.strip().split(",")
              name = clean_arg(arg, 0)
              role = clean_arg(arg, -1)
              if name == "" or role == "":
                  continue
              if name == self.NAN or role == self.NAN:
                  continue
              args.append((name, role))
          if trigger == "" or event_type == "":
              continue
          if trigger == self.NAN or event_type == self.NAN:
              continue
          new_record.append((event_type, trigger, tuple(args)))
      return new_record
  
file_path: DeepKE/example/llm/InstructKGC/kg2instruction/eval/extracter/eea_extractor.py
imports: import re
label_desc: Use image node_id 5 for calling the EEAExtractor obj's underlying member method code with example usage: obj.eea_post_process1_zh(text, result) and returns: new_record, s, s