def get_top_words(top, filename):
topK = top
content = open(filename, 'rb').read()
tags = jieba.analyse.extract_tags(content, topK=topK)
# items = str(tags).replace('u\'', '\'').decode("unicode-escape")
return tags
评论列表
文章目录