code: def ner_post_process2(self, text, result):
      def clean(spt):
          spt = spt.strip()
          return spt
  
      rst = self.replace_nomiss(result)
      matches = rst.split("\n")
      new_record = []
      for m in matches:
          if m.strip() == self.NAN:
              continue
          spt = m.split("：")
          type, entity = clean(spt[0]), clean(spt[1])
          if entity == "" or type == "":
              continue
          if entity == self.NAN or type == self.NAN:
              continue
          new_record.append((entity, type))
  
      return new_record
  
file_path: DeepKE/example/llm/InstructKGC/kg2instruction/eval/extracter/ner_extractor.py
imports: import re
label_desc: Use image node_id 7 for calling the NERExtractor obj's underlying member method code with example usage: obj.ner_post_process2(text, result) and returns: new_record, spt