cut_text.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:internet-content-detection 作者: liubo0621 项目源码 文件源码
def __init__(self, dict_path = ''):
        super(Singleton, self).__init__()
        if not hasattr(self,'_stop_words'):
            #???????
            if dict_path:
                jieba.load_userdict(dict_path)

            self._stop_words = set((
                '', ' ', '\n', "the", "of", "is", "and", "to", "in", "that", "we", "for", "an", "are",
                "by", "be", "as", "on", "with", "can", "if", "from", "which", "you", "it",
                "this", "then", "at", "have", "all", "not", "one", "has", "or", "that"
            ))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号