We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Traceback (most recent call last): File "run.py", line 40, in subject_model, object_model, hbt_model = E2EModel(bert_config_path, bert_checkpoint_path, LR, num_rels) File "/home/fubo01/work/paper/CasRel/CasRel-master/model.py", line 15, in E2EModel bert_model = load_trained_model_from_checkpoint(bert_config_path, bert_checkpoint_path, seq_len=None) File "/home/fubo01/miniconda3/envs/CasRel/lib/python3.7/site-packages/keras_bert/loader.py", line 169, in load_trained_model_from_checkpoint **kwargs) File "/home/fubo01/miniconda3/envs/CasRel/lib/python3.7/site-packages/keras_bert/loader.py", line 58, in build_model_from_config **kwargs) File "/home/fubo01/miniconda3/envs/CasRel/lib/python3.7/site-packages/keras_bert/bert.py", line 126, in get_model adapter_activation=gelu, TypeError: get_encoders() got an unexpected keyword argument 'use_adapter'
The text was updated successfully, but these errors were encountered:
please release your requirements.txt!!!! OK ?
Sorry, something went wrong.
I solved this problem by installing keras-transformer==0.30.0 via pip.
pip install keras_bert==0.81.1
No branches or pull requests
Traceback (most recent call last):
File "run.py", line 40, in
subject_model, object_model, hbt_model = E2EModel(bert_config_path, bert_checkpoint_path, LR, num_rels)
File "/home/fubo01/work/paper/CasRel/CasRel-master/model.py", line 15, in E2EModel
bert_model = load_trained_model_from_checkpoint(bert_config_path, bert_checkpoint_path, seq_len=None)
File "/home/fubo01/miniconda3/envs/CasRel/lib/python3.7/site-packages/keras_bert/loader.py", line 169, in load_trained_model_from_checkpoint
**kwargs)
File "/home/fubo01/miniconda3/envs/CasRel/lib/python3.7/site-packages/keras_bert/loader.py", line 58, in build_model_from_config
**kwargs)
File "/home/fubo01/miniconda3/envs/CasRel/lib/python3.7/site-packages/keras_bert/bert.py", line 126, in get_model
adapter_activation=gelu,
TypeError: get_encoders() got an unexpected keyword argument 'use_adapter'
The text was updated successfully, but these errors were encountered: