chenxiaoyouyou / Bert-BiLSTM-CRF-pytorch

使用谷歌预训练bert做字嵌入的BiLSTM-CRF序列标注模型
MIT License
458 stars 100 forks source link

TypeError: 'NoneType' object is not callable #2

Closed mymxhdd closed 5 years ago

mymxhdd commented 5 years ago

在这一步报错 File "/data/Bert-BiLSTM-CRF-pytorch/model/bert_lstmcrf.py", line 47, in forward embeds, = self.word_embeds(sentence, attention_mask=attention_mask, output_all_encoded_layers=False) TypeError: 'NoneType' object is not callable 请问是什么原因

chenxiaoyouyou commented 5 years ago

某一个函数调用是None

zjcanjux commented 5 years ago

bert model路径不对

ysgncss commented 4 years ago

请问单字符标签怎么表示? 没有 S tag?