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

请问一下这部分代码的意思 #5

Open
psychocosine opened this issue Feb 5, 2023 · 3 comments
Open

请问一下这部分代码的意思 #5

psychocosine opened this issue Feb 5, 2023 · 3 comments

Comments

@psychocosine
Copy link

论文里说multi-head Biaffine就接CNN了,这里计算的是什么呢?
image

@yhcc
Copy link
Owner

yhcc commented Feb 5, 2023

这个scores2就是biaffine paepr (https://arxiv.org/pdf/1611.01734.pdf)公式(3)中的第二项,中间那个size embedding就相当于在这个第二项中再加入一个span长度的偏置信息。

@psychocosine
Copy link
Author

谢谢!

@Arios-29
Copy link

作者你好。请问这个span_size_ids打印出来是这样的
image
n_pos在代码中设置为30。这个span_size_ids的各个元素是什么意思呢?这个30是指最大的span长度为30吗?

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