stanleylsx / entity_extractor_by_ner

基于Tensorflow2.3开发的NER模型,都是CRF范式,包含Bilstm(IDCNN)-CRF、Bert-Bilstm(IDCNN)-CRF、Bert-CRF,可微调预训练模型,可对抗学习,用于命名实体识别,配置后可直接运行。
390 stars 73 forks source link

Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on. #65

Closed 582856 closed 8 months ago

582856 commented 8 months ago

Traceback (most recent call last): File "main.py", line 70, in dataManager = DataManager(configs, logger) File "/root/ner/engines/data.py", line 56, in init self.tokenizer = BertTokenizer.from_pretrained(huggingface_tag) File "/root/miniconda3/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1672, in from_pretrained resolved_vocab_files[file_id] = cached_path( File "/root/miniconda3/lib/python3.8/site-packages/transformers/file_utils.py", line 1271, in cached_path output_path = get_from_cache( File "/root/miniconda3/lib/python3.8/site-packages/transformers/file_utils.py", line 1494, in get_from_cache raise ValueError( 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.

how to solve it

bnjhzsdcgvd commented 5 months ago

i get the same problem,do you have solved it? tanks