docstr: 删除文本中无效字符以及空白字符
  Arg :
      text (String) : 所需删除的文本
  Return :
      "".join(output) (String) : 删除后的文本
docstr_tok: ["\u5220\u9664\u6587\u672c\u4e2d\u65e0\u6548\u5b57\u7b26\u4ee5\u53ca\u7a7a\u767d\u5b57\u7b26","Arg",":","text","(","String",")",":","\u6240\u9700\u5220\u9664\u7684\u6587\u672c","Return",":","``","''",".join","(","output",")","(","String",")",":","\u5220\u9664\u540e\u7684\u6587\u672c"]
code: def _clean_text(self, text):
      """
      删除文本中无效字符以及空白字符
      Arg :
          text (String) : 所需删除的文本
      Return :
          "".join(output) (String) : 删除后的文本
      """
      output = []
      for char in text:
          cp = ord(char)
          if cp == 0 or cp == 0xFFFD or self.is_control(char):
              continue
          if self.is_whitespace(char):
              output.append(" ")
          else:
              output.append(char)
      return "".join(output)
  
file_path: DeepKE/src/deepke/attribution_extraction/standard/tools/serializer.py
imports: import re
  import unicodedata
  import jieba
  import logging
  from typing import List
label_desc: Use image node_id 3 for calling the Serializer obj's underlying member method code with example usage: obj._clean_text(text) and returns: str