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

CRF层出错 #14

Open
liukeyang8888 opened this issue Jul 7, 2022 · 0 comments
Open

CRF层出错 #14

liukeyang8888 opened this issue Jul 7, 2022 · 0 comments

Comments

@liukeyang8888
Copy link

你好,这是什么原因造成的呢?
Traceback (most recent call last):
File "D:/研究生/NER_DEMO-master/NER_DEMO-master/train.py", line 108, in
info_list = train_sample(train_model='BERTBILSTMCRF', epochs=15, log=log)
File "D:/研究生/NER_DEMO-master/NER_DEMO-master/train.py", line 52, in train_sample
model = model_class.creat_model()
File "D:\研究生\NER_DEMO-master\NER_DEMO-master\Model\BERT_BILSTM_CRF.py", line 51, in creat_model
x = self.crf(x)
File "D:\Application\python3.6\lib\site-packages\keras\engine\base_layer.py", line 443, in call
previous_mask = _collect_previous_mask(inputs)
File "D:\Application\python3.6\lib\site-packages\keras\engine\base_layer.py", line 1311, in _collect_previous_mask
mask = node.output_masks[tensor_index]
AttributeError: 'Node' object has no attribute 'output_masks'

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