Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于按照readme.txt中的运行语句进行运行后,出现ValueError的错误 #226

Open
nnxiaxia opened this issue Jul 3, 2024 · 0 comments

Comments

@nnxiaxia
Copy link

nnxiaxia commented Jul 3, 2024

您好,我在搭建好环境后,按照您的reademe.txt中的运行train.py语句进行运行,但出现如下报错:“Traceback (most recent call last):
File "train.py", line 304, in
main()
File "train.py", line 299, in main
ins = Instructor(opt)
File "train.py", line 39, in init
tokenizer = Tokenizer4Bert(opt.max_seq_len, opt.pretrained_bert_name)
File "E:\pycharm location\ABSA-PyTorch-master\data_utils.py", line 114, in init
self.tokenizer = BertTokenizer.from_pretrained(pretrained_bert_name)
File "E:\anaconda\envs\pytorch\lib\site-packages\transformers\tokenization_utils_base.py", line 1629, in from_pretrained
local_files_only=local_files_only,
File "E:\anaconda\envs\pytorch\lib\site-packages\transformers\file_utils.py", line 955, in cached_path
local_files_only=local_files_only,
File "E:\anaconda\envs\pytorch\lib\site-packages\transformers\file_utils.py", line 1125, in get_from_cache
"Connection error, and we cannot find the requested files in the cached path."
ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on.”
请问您有什么好的解决方法吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant