Module pywander.nlp.text

short text process tools

Functions

def guess_chapter_id(string)

根据给定的简短文本猜测 章节编号 :param string: :return:

def guess_volume_id(string)

根据给定的简短文本猜测 卷编号 :param string: :return:

def int_number(string)

类似 int_zhnumber 函数,不过假如了 "132" 的 这样的数字字符支持

:param string: :return:

def multi_delimiter_split(string, delimiters='', split_whitespace=True, remove_whitespace=True)

多个分隔符分割字符串,

delimiters = ';,' split_whitespace 是否加上按照空白分割 默认是按照空白分割 remove_whitespace 是否移除分隔符两边多余的空白字符 默认移除