code: def ee_post_process1_en(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("Event Trigger is", "")
          if i == -1 and len(s) != 0:
              s = s.replace("Event Type is", "")
          return s
  
      rst = self.replace_nomiss(result)
      matches = rst.split("\n")
      new_record = []
      for m in matches:
          if m.strip() == self.NAN:
              continue
          spt = m.split("\n")
          trigger = clean_type(spt, 0)
          event_type = clean_type(spt, -1)
          if trigger == "" or event_type == "":
              continue
          if trigger == self.NAN or event_type == self.NAN:
              continue
          new_record.append((event_type, trigger))
      return new_record
  
file_path: DeepKE/example/llm/InstructKGC/kg2instruction/eval/extracter/eet_extractor.py
imports: import re
label_desc: Use image node_id 6 for calling the EETExtractor obj's underlying member method code with example usage: obj.ee_post_process1_en(text, result) and returns: new_record, s