WindChimeRan / pytorch_multi_head_selection_re

BERT + reproduce "Joint entity recognition and relation extraction as a multi-head selection problem" for Chinese and English IE
138 stars 32 forks source link

AttributeError: 'NoneType' object has no attribute 'named_parameters' #11

Closed hi-wangyan closed 4 years ago

hi-wangyan commented 4 years ago

Hello,when I run select the --exp_name is conll_bert_re,I meet a mistake as follow, can you take some time give me a help:

for name, param in self.encoder.named_parameters(): AttributeError: 'NoneType' object has no attribute 'named_parameters'

Thanks!