DeepKE常规关系抽取模拟训练这一步出错
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.
Additional context
Add any other context about the problem here. 我开始是创建缺失目录文件
然后又出现了新的问题: 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.
我在安装过程中也遇到了这一问题,因为下载模型的huggingface网站国内无法直连,https://zhuanlan.zhihu.com/p/625595604这篇文章有网盘资源,可以尝试。
我已经解决了,在conf/config.yaml中换个模型就可以了
把lm换成cnn
我在安装过程中也遇到了这一问题,因为下载模型的huggingface网站国内无法直连,https://zhuanlan.zhihu.com/p/625595604这篇文章有网盘资源,可以尝试。 我已经下载了bert-base-chinese,不换model,怎么设置配置呢
我在安装过程中也遇到了这一问题,因为下载模型的huggingface网站国内无法直连,https://zhuanlan.zhihu.com/p/625595604这篇文章有网盘资源,可以尝试。 我已经下载了bert-base-chinese,不换model,怎么设置配置呢
lm_file设置成模型的目录即可
感谢博主,真的弄半天了,稀里糊涂的,改了这个真的可以了