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

AttributeError: 'NoneType' object has no attribute 'bert'

Open suifeng321 opened this issue 4 years ago • 0 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' 请问有没有解决办法?

suifeng321 avatar Aug 15 '20 08:08 suifeng321