code: def ner_post_process3(self, text, result):
      def get_span(text, template):
          match = re.findall(template, text)
          try:
              match = match[0]
          except IndexError:
              match = ""
          return match.strip()
  
      matches = re.findall(NER_triple3, result)
      new_record = []
      for m in matches:
          entity = get_span(m, NER_triple3_entity)
          type = get_span(m, NER_triple3_type)
          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 8 for calling the NERExtractor obj's underlying member method code with example usage: obj.ner_post_process3(text, result) and returns: new_record, match