tfidf.py 文件源码

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

项目:http_server 作者: chenguolin 项目源码 文件源码
def set_stop_words(self, stop_words_path):
        abs_path = _get_abs_path(stop_words_path)
        if not os.path.isfile(abs_path):
            raise Exception("jieba: file does not exist: " + abs_path)
        content = open(abs_path, 'rb').read().decode('utf-8')
        for line in content.splitlines():
            self.stop_words.add(line)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号