fenci.py 文件源码

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

项目:SinaWeiboSpider 作者: SuperSaiyanSSS 项目源码 文件源码
def test_if_has_keyword(self, weibo_text):
        content = weibo_text
        tags = jieba.analyse.extract_tags(content, topK=self.topK)

        for tag in tags:
            if tag in self.mingan_list:
                print("6666666")
                print(content)
                print(tag)
                return True
            else:
                print("no")
        return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号