DeepKE icon indicating copy to clipboard operation
DeepKE copied to clipboard

DeepKE常规关系抽取模拟训练这一步出错

Open ZainGray opened this issue 3 years ago • 5 comments

Describe the question

A clear and concise description of what the question is.

你好,我按照README_CN.md安装好环境后,在常规关系抽取运行python run.py出现了以下错误: FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/huggingface/hub/models--bert-base-chinese/refs/main'

Environment (please complete the following information):

  • OS: Centos7
  • Python Version 3.8

Screenshots

If applicable, add screenshots to help explain your problem.

c3bdcae39134ab788397210f8088f60

Additional context

Add any other context about the problem here. 我开始是创建缺失目录文件 3af35e187472f1716c88b27b4b66f2f 然后又出现了新的问题: OSError: Can't load tokenizer for 'bert-base-chinese'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'bert-base-chinese' is the correct path to a directory containing all relevant files for a BertTokenizer tokenizer.

ZainGray avatar Oct 17 '23 05:10 ZainGray

我在安装过程中也遇到了这一问题,因为下载模型的huggingface网站国内无法直连,https://zhuanlan.zhihu.com/p/625595604这篇文章有网盘资源,可以尝试。

Sugaraqua avatar Oct 17 '23 06:10 Sugaraqua

我已经解决了,在conf/config.yaml中换个模型就可以了 25fc188465a8706320d549919370b1a 把lm换成cnn

ZainGray avatar Oct 17 '23 07:10 ZainGray

我在安装过程中也遇到了这一问题,因为下载模型的huggingface网站国内无法直连,https://zhuanlan.zhihu.com/p/625595604这篇文章有网盘资源,可以尝试。 我已经下载了bert-base-chinese,不换model,怎么设置配置呢

wangchao1980 avatar Oct 17 '23 09:10 wangchao1980

我在安装过程中也遇到了这一问题,因为下载模型的huggingface网站国内无法直连,https://zhuanlan.zhihu.com/p/625595604这篇文章有网盘资源,可以尝试。 我已经下载了bert-base-chinese,不换model,怎么设置配置呢

image

lm_file设置成模型的目录即可

wangchao1980 avatar Oct 17 '23 15:10 wangchao1980

感谢博主,真的弄半天了,稀里糊涂的,改了这个真的可以了

Emily-0203 avatar Nov 10 '24 07:11 Emily-0203