contentView.py 文件源码

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

项目:OpinionSpam 作者: Coder-Yu 项目源码 文件源码
def trainingNet(self, window, nDimension):
        self.nDimension = nDimension
        sentences = LabeledLineSentence(self.corpus)
        self.model = Doc2Vec(min_count=1, window=window, size=nDimension, sample=1e-4, negative=5, workers=4)
        corpus = sentences.to_array()
        self.model.build_vocab(corpus)
        for epoch in range(10):
            self.model.train(sentences.sentences_perm())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号