IE-Bert-CNN icon indicating copy to clipboard operation
IE-Bert-CNN copied to clipboard

请教

Open yh7109 opened this issue 5 years ago • 2 comments

执行python main.py train报错: File "F:\Skill\Code\RELATION\IE-Bert-CNN-master\models\BERT_MUL_CNN.py", line 112, in forward sequence_output, _ = self.bertForToken.bert(batch_data, token_type_ids=None, attention_mask=batch_masks, output_all_encoded_layers=False) AttributeError: 'NoneType' object has no attribute 'bert' 请问有没有解决办法?

yh7109 avatar Jul 15 '19 11:07 yh7109

遇到同样的问题,请问解决了吗?

suifeng321 avatar Aug 15 '20 05:08 suifeng321

您好,作者! 执行python main.py train报错: File "F:\Skill\Code\RELATION\IE-Bert-CNN-master\models\BERT_MUL_CNN.py", line 112, in forward sequence_output, _ = self.bertForToken.bert(batch_data, token_type_ids=None, attention_mask=batch_masks, output_all_encoded_layers=False) AttributeError: 'NoneType' object has no attribute 'bert' 请问有没有解决办法?

suifeng321 avatar Aug 15 '20 05:08 suifeng321