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
when run ner, i got error : Key 'bert_model' is not in struct #153
Comments
When you use bert model, please set hydra/model in |
I got the following reslut:
micro avg 0.0000 0.0000 0.0000 455 [2022-10-04 00:44:12,902][main][INFO] - ***** Eval results *****
micro avg 0.0000 0.0000 0.0000 455 Why my model resluts were all zero ? |
我建议您适当调整超参数,例如学习率learning rate,以及lstm的层数hidden_layer等等。重点关注loss是否为 |
您好我训练的是bert模型的ner,不是lstm的模型 |
那就确保您的pretrain模型是正确的,并且调整超参。建议您先在deepke现成的数据集下运行 |
那么我实在tran.yml中修改使用的预训练模型是么? |
micro avg表示微平均,表示不区分样本类别,计算整体的准确率、召回率和F1值 |
Traceback (most recent call last):
File "run_bert.py", line 93, in main
tokenizer = BertTokenizer.from_pretrained(cfg.bert_model, do_lower_case=cfg.do_lower_case)
omegaconf.errors.ConfigAttributeError: Key 'bert_model' is not in struct
full_key: bert_model
reference_type=Optional[Dict[Union[str, Enum], Any]]
object_type=dict
The text was updated successfully, but these errors were encountered: