similarity_update.py 文件源码

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

项目:recommended_system 作者: wac81 项目源码 文件源码
def delstopwords(content):
    result = ''
    words = pseg.lcut("".join(content.split()))
    for word, flag in words:
        if word not in stopwords and flag not in ["/x", "/zg", "/uj", "/ul", "/e", "/d", "/uz",
                                                  "/y"]:  # ??????????????????
            result += word.encode('utf-8')  # +"/"+str(w.flag)+" "  #????
    return result
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号