Skip to content
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

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

Open
suifeng321 opened this issue Aug 15, 2020 · 0 comments
Open

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

suifeng321 opened this issue Aug 15, 2020 · 0 comments

Comments

@suifeng321
Copy link

您好,作者!
执行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'
请问有没有解决办法?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant