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

in-label-space设置下conll测试集问题 #5

Open
qhq123 opened this issue Mar 27, 2023 · 1 comment
Open

in-label-space设置下conll测试集问题 #5

qhq123 opened this issue Mar 27, 2023 · 1 comment

Comments

@qhq123
Copy link

qhq123 commented Mar 27, 2023

您好! 在task=in-label-space,mode=conll设置下,我将framework.py中的517-521行:logits, pred, _ = model(query['inputs'], query['tagging_labels'], query['index_labels'],query['target_classes'],query['sentence_num'])更改为了logits, pred, _ = model(query['inputs'], query['batch_labels'],query['valid_masks'],query['target_classes'],query['sentence_num'])使它可以运行,但是在eval阶段读取test.txt时好像会出现读取单行数据(长度过短)时出现异常。
是我不应该这么修改吗?(但是不修改的话代码无法运行,因为代码中没有定义过query中的字段)还是其他原因?

@mihua5329
Copy link

您好! 在task=in-label-space,mode=conll设置下,我将framework.py中的517-521行:logits, pred, _ = model(query['inputs'], query['tagging_labels'], query['index_labels'],query['target_classes'],query['sentence_num'])更改为了logits, pred, _ = model(query['inputs'], query['batch_labels'],query['valid_masks'],query['target_classes'],query['sentence_num'])使它可以运行,但是在eval阶段读取test.txt时好像会出现读取单行数据(长度过短)时出现异常。 是我不应该这么修改吗?(但是不修改的话代码无法运行,因为代码中没有定义过query中的字段)还是其他原因?

你好 可以求一下数据集或者处理脚本吗 我的邮箱 [email protected] 感谢!

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

2 participants