Module pywander.nlp.utils
Functions
def is_chinese(string)
-
检查整个字符串是否为中文
Args
string
:str
- 需要检查的字符串,包含空格也是False
Return bool
def is_contain_chinese(check_str)
-
判断字符串中是否包含中文 :param check_str: {str} 需要检测的字符串 :return: {bool} 包含返回True, 不包含返回False
def is_empty_string(s)