keywords.py 文件源码

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

项目:QProb 作者: quant-trade 项目源码 文件源码
def processs_content(post):
    text = words_wo_stopwords(strip_tags(post.content))
    #TODO this is duplicated job, should be improved
    words = word_tokenize(strip_tags(text))
    taggged = pos_tag(words)
    cleaned = filter_insignificant(taggged)
    text = " ".join(cleaned)
    wc = WordCloudMod().generate(text)
    result = list(wc.keys())[:10]

    if len(result) > 0:
        post = await save_tags(tags=result, entry=post)
        post.save()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号