gpt4 book ai didi

python - Tensorflow - 在 tensorflow.models.embeddings 中没有名为 'embeddings' 的模块

转载 作者:太空宇宙 更新时间:2023-11-03 11:26:01 28 4
gpt4 key购买 nike

我正在尝试使用此处找到的 Tensorflow 运行单词教程的矢量表示:

http://www.tensorflow.org/tutorials/word2vec/index.md

第一个脚本 word2vec_basic.py 运行良好,但第二个脚本(在此处找到)

https://tensorflow.googlesource.com/tensorflow/+/master/tensorflow/models/embedding/word2vec.py

在第 28 行给我错误“ImportError:没有名为嵌入的模块”。我按照页面上的说明安装了 tensorflow,我为什么没有得到包含 word2vec 的嵌入模块?

最佳答案

目前,功能更全的 word2vec 版本(例如 word2vec.py)需要从源代码构建。

关于python - Tensorflow - 在 tensorflow.models.embeddings 中没有名为 'embeddings' 的模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33634126/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com