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

ValueError: mask of the first timestep must all be on #20

Open
guomeng398 opened this issue Mar 17, 2023 · 2 comments
Open

ValueError: mask of the first timestep must all be on #20

guomeng398 opened this issue Mar 17, 2023 · 2 comments

Comments

@guomeng398
Copy link

作者大大你好,我只修改了config.py里面的标签,数据里面的空格我用的‘,’代替的,然后跑BERT-LSTM-CRF是正常的,但是相同的数据在BERT-CRF时就会报这个错误,错误是在model.py中的loss = self.crf(logits, labels, loss_mask) * (-1)请问是什么原因呀,麻烦您啦

@wangp-0120
Copy link

你解决了这个问题吗 我一天了 也没找到咋解决

@STRlantian
Copy link

请问解决了吗?我也是这个问题,只改了改config.py

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

3 participants