code: def ner_post_process1_zh(self, text, result):
      def clean(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")
      new_record = []
      for m in matches:
          if m.strip() == self.NAN:
              continue
          spt = m.split(",")
          entity = clean(spt, 0)
          type = 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 5 for calling the NERExtractor obj's underlying member method code with example usage: obj.ner_post_process1_zh(text, result) and returns: new_record, s