code: def extract(self, text, output):
      clean_output = self.clean(output).lower()
      if clean_output == self.Reject.lower():
          return []
      clean_output = clean_output.replace("\n", "")
      clean_output = clean_output.replace("nan", "")
      if (
          clean_output == ""
          or "no ent" in clean_output
          or clean_output.startswith("sorry")
      ):
          return []
      if self.language == "zh":
          return self.ner_post_process_zh(text, output)
      else:
          return self.ner_post_process_en(text, output)
  
file_path: DeepKE/example/llm/InstructKGC/kg2instruction/eval/extracter/ner_extractor.py
imports: import re
label_desc: Use image node_id 9 for calling the NERExtractor obj's underlying member method code with example usage: obj.extract(text, output) and returns: list, list, self, self