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
评论列表
文章目录