标签: keras gensim
导入gensim
加载Google预先训练的Word2Vec模型。
model = gensim.models.KeyedVectors.load_word2vec_format('GoogleNews-vectors-negative300.bin', binary=True) embed = model.get_keras_embedding() print(embed.weights)
输出:[]
如何在Keras中打印嵌入层的权重,当前正在打印空列表?