songyingxin / Bert-TextClassification

Implemention some Baseline Model upon Bert for Text Classification
Other
677 stars 148 forks source link

运行run_SST2.py报错 #28

Open pony-m opened 2 years ago

pony-m commented 2 years ago

Exception has occurred: FileNotFoundError [Errno 2] No such file or directory: 'outputs/outputBertLSTM/BertLSTM/config.json' File "/data_sas/mz/3_Geobert_tasks/Bert-TextClassification/main.py", line 139, in main bert_config = BertConfig(output_config_file) File "/data_sas/mz/3_Geobert_tasks/Bert-TextClassification/run_SST2.py", line 45, in main(config, config.save_name, label_list)

van-der-Poel commented 1 year ago

尝试把上面下载的这个压缩包('bert-base-uncased': "https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-uncased.tar.gz",),压缩包里面包含的两个文件中的这个“bert_config.json”,改一下名字,改成config.json,然后放进这个文件夹('.sst_output/BertOrigin/BertOrigin/')里面。里面存储的都是一些这样的超参数定义