我目前正在使用Keras模型,该模型具有嵌入层作为第一层.为了可视化彼此之间的单词的关系和相似性,我需要一个函数来返回词汇表中每个元素的单词和向量的映射(例如'love' - [0.21,0.56,...,0.65,0.10] ).
有什么办法吗?
python dictionary keras word-embedding keras-layer
dictionary ×1
keras ×1
keras-layer ×1
python ×1
word-embedding ×1