sentiment.py 文件源码

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

项目:Political-Opinion-Finder 作者: philhabell 项目源码 文件源码
def conf(self, features):
        self.votes = []
        for self.i in self._classifiers:
            self.j = self.i.classify(features)
            self.votes.append(self.j)

        self.choice_votes = self.votes.count(mode(self.votes))
        self.conf = self.choice_votes / len(self.votes)
        return self.conf

    # find the features of document
    # must be handed:
    #     *document to find feature of
    #     *word features
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号