CasRel
CasRel copied to clipboard
'Node' object has no attribute 'output_masks'
I tried to run this project code, and installed all libraries as requirements but face an AttributeError: 'Node' object has no attribute 'output_masks'
when I try to run run.py when I follow the error it shows me an error in the model.py lines:
def E2EModel(bert_config_path, bert_checkpoint_path, LR, num_rels): ------->>bert_model = load_trained_model_from_checkpoint(bert_config_path, bert_checkpoint_path, seq_len=None)
Also, the run.py import libraries look like this
When I tried to run this code in Visual Studio it get me directly to model.py as seen in the figure.
Is anyone solved or run this code so please help me with that? Thanks