-
Notifications
You must be signed in to change notification settings - Fork 9
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: not enough values to unpack (expected 7, got 0) #23
Comments
打印下加载数据是否正确 |
我也遇到这样的问题,你解决了吗 |
你好,我也遇到了相同的问题。 |
你好,我也是跑完五个循环后,eval mode……,就会报上面的错,要改max_len改成多少啊 |
@32209056 max_len 应该要调到比数据里最长的text大一点。
但我觉得,如果max——len 小于最长字符的话,应该只是丢失了部分数据,而不是跑不出来? |
你好,这个问题我觉得是你的数据问题,我一开始也有这个问题,是因为我的数据里gold标签里的实体不在text中所以报错了,我把有问题的数据改了后就好了 |
你好,这个问题我觉得是你的数据问题,我一开始也有这个问题,是因为我的数据里gold标签里的实体不在text中所以报错了,我把有问题的数据改了后就好了 |
谢谢,确实形成的dev_json有问题,重新下载一下代码,作者有更新,能跑出来 |
data_loader.py文件中
token_ids, masks, loss_masks, text_len, triple_matrix, triples, tokens = zip(*batch)
ValueError: not enough values to unpack (expected 7, got 0)
batch是个空列表😵
The text was updated successfully, but these errors were encountered: