def jieba_tfidf(data, topK=20, withWeight=False, allowPOS=('nz', 'nt', 'ns', 'nr', 'n', 'vn')):
'''
??tfidf?????????topK???????????????20?
withWeight????????????????
allowPOS???????
'''
temp_result = jieba.analyse.extract_tags(
data, topK, withWeight, allowPOS)
temp_result = '/'.join(temp_result)
return temp_result
评论列表
文章目录