docstr: 判断字符是否为中文字符
  Arg :
      cp (char): 字符
  Return :
      bool : 判断结果
docstr_tok: ["\u5224\u65ad\u5b57\u7b26\u662f\u5426\u4e3a\u4e2d\u6587\u5b57\u7b26","Arg",":","cp","(","char",")",":","\u5b57\u7b26","Return",":","bool",":","\u5224\u65ad\u7ed3\u679c"]
code: def is_chinese_char(cp):
      """
  
      判断字符是否为中文字符
      Arg :
          cp (char): 字符
      Return :
          bool : 判断结果
  
      """
      # This defines a "chinese character" as anything in the CJK Unicode block:
      #   https://en.wikipedia.org/wiki/CJK_Unified_Ideographs_(Unicode_block)
      #
      # Note that the CJK Unicode block is NOT all Japanese and Korean characters,
      # despite its name. The modern Korean Hangul alphabet is a different block,
      # as is Japanese Hiragana and Katakana. Those alphabets are used to write
      # space-separated words, so they are not treated specially and handled
      # like the all of the other languages.
      if (
          (cp >= 0x4E00 and cp <= 0x9FFF)
          or (cp >= 0x3400 and cp <= 0x4DBF)  #
          or (cp >= 0x20000 and cp <= 0x2A6DF)  #
          or (cp >= 0x2A700 and cp <= 0x2B73F)  #
          or (cp >= 0x2B740 and cp <= 0x2B81F)  #
          or (cp >= 0x2B820 and cp <= 0x2CEAF)  #
          or (cp >= 0xF900 and cp <= 0xFAFF)
          or (cp >= 0x2F800 and cp <= 0x2FA1F)  #
      ):  #
          return True
  
      return False
  
file_path: DeepKE/src/deepke/relation_extraction/standard/tools/serializer.py
imports: import re
  import unicodedata
  import jieba
  import logging
  from typing import List
label_desc: Use image node_id 12 for calling the Serializer obj's underlying member method code with example usage: obj.is_chinese_char(cp) and returns: False, True