Word嵌入Python

问题描述 投票:0回答:1

我如何使用Keras实现构建词嵌入,其中使用CBOW模型,嵌入向量的长度分别为50、150和300。

考虑将窗口大小设为2来训练嵌入。

vector keras embedding
1个回答
0
投票

此(http://www.claudiobellei.com/2018/01/07/backprop-word2vec-python/)帖子非常完整,并使用Keras。我相信它将为您提供帮助。您也可以使用Gensim库。非常好看到这些链接:

1-https://machinelearningmastery.com/develop-word-embeddings-python-gensim/

2-https://www.geeksforgeeks.org/python-word-embedding-using-word2vec/

© www.soinside.com 2019 - 2024. All rights reserved.