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

start_outputs和end_outputs维度问题 #1

Open
lxgend opened this issue Feb 20, 2021 · 1 comment
Open

start_outputs和end_outputs维度问题 #1

lxgend opened this issue Feb 20, 2021 · 1 comment

Comments

@lxgend
Copy link

lxgend commented Feb 20, 2021

self.start_outputs = nn.Linear(config.hidden_size, 2)

请教一下,start_outputs和end_outputs的nn.Linear(config.hidden_size, 2) 中的2,代表什么意思?
我看香农官方的代码,他们又改成了nn.Linear(config.hidden_size, 1)
非常迷惑,烦请解答,谢谢

@Senwang98
Copy link

Senwang98 commented Feb 21, 2022

@lxgend
不知道你后续理解了没,我最近在看ner的工作,这个维度2是ce loss,维度1是为了bce。

顺便问一下兄弟,官方的代码你复现精度了吗?我感觉跟paper中的结果有差距

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