欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 房产 > 建筑 > python 检索与该查询最相似的句子 使用库hflayers和sentence_transformers来实现遇到的问题

python 检索与该查询最相似的句子 使用库hflayers和sentence_transformers来实现遇到的问题

2025/2/23 14:27:19 来源:https://blog.csdn.net/weixin_43911199/article/details/142281284  浏览:    关键词:python 检索与该查询最相似的句子 使用库hflayers和sentence_transformers来实现遇到的问题

此篇文章总结遇到三个问题(3. OSError: We couldn’t connect to ‘https://huggingface.co’ to load this file, couldn’t find it in the cached files and it looks like sentence-transformers/all-mpnet-base-v2 is not the path to a directory containing a file named config.json.、2. ModuleNotFoundError: No module named ‘hflayers’、 1.ModuleNotFoundError: No module named ‘exceptions’)的解决方法。

遇到问题(一)

  1. ModuleNotFoundError: No module named ‘exceptions’

原因

pip install 了错误的库(pip install docx)

解决方法

pip uninstall docx
pip install python-docx

遇到问题(二)

1.ModuleNotFoundError: No module named ‘hflayers’

尝试方法

pip install hflayers 无法解决
到网站:https://pypi.org/ 查找库,没有找到, 无法解决

解决方法

去网址 https://github.com/ml-jku/hopfield-layers/tree/f56f929c95b

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词