zhword2vec.py 文件源码

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

项目:ChineseSA 作者: cwlseu 项目源码 文件源码
def zhword2vec(ifname, fmodel):
    '''Training the word2vec word
    more: http://radimrehurek.com/gensim/models/word2vec.html

    '''
    model = Word2Vec(LineSentence(ifname), size = 400, window = 5,
                    min_count = 2, workers = multiprocessing.cpu_count(),negative = 5)
    model.save(fmodel)
    # model.save_word2vec_format(fword2vec, binary=False)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号