Skip to main content
 首页 » 编程设计

python之谁能告诉我 Gensim 使用的模型(skipgram/CBOW)

2025年02月15日8dflying

word2vec 使用任一模型来分布式表示单词。我正在检查 gensim 的代码,但它没有定义 gensim 使用的模型。

请您参考如下方法:

From the gensim documentation:

sg defines the training algorithm. By default (sg=0), CBOW is used. Otherwise (sg=1), skip-gram is employed.