tfidf_top.py 文件源码

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

项目:Malicious_Domain_Whois 作者: h-j-13 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号