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

论文中的一个问题 #88

Open
ylxwan opened this issue Jun 23, 2024 · 3 comments
Open

论文中的一个问题 #88

ylxwan opened this issue Jun 23, 2024 · 3 comments
Labels
discussion Discussion on DocEE and SentEE

Comments

@ylxwan
Copy link

ylxwan commented Jun 23, 2024

您好,我在阅读论文的过程中,有一个地方不理解,想请您指导一下。在论文中2.3中“Non-Autoregressive Combination Decoding“这一小节中有一句这样的描述”For those extreme records that have only one argument in the combinations, all predicted entities are aggregated together as a default combination.“,我不太理解这句话是什么意思,感觉很突兀,和上下文接不上。

@ylxwan ylxwan added the discussion Discussion on DocEE and SentEE label Jun 23, 2024
@Spico197
Copy link
Owner

嗨您好,感谢您对我们工作的关注~

由于组合中的某个伪触发词可能缺失,因此在BK算法解码后,还可能会残留只有一个伪触发词的组合。这部分组合是一种特殊情况,需要单独纳入考量。可以结合代码进一步理解:

left_triggers = triggers - used_triggers
if with_left_trigger:
for v in left_triggers:
comb = set()
if len(connections[v]) > 0:
comb.add(v)
comb.update(connections[v])
if len(comb) > 0 and comb not in combs:
combs.append(comb)

@ylxwan
Copy link
Author

ylxwan commented Jun 24, 2024

好的,谢谢您,我先自己阅读理解一下

@ylxwan
Copy link
Author

ylxwan commented Jul 1, 2024

老师,您好,请问这里为什么self_loop是false的时候,会将邻接矩阵的对角线置为1。这里是不是弄反了?还是我理解错了。
if self.config.self_loop:
rel_adj_mat = (
doc_arg_rel_info.whole_arg_rel_mat.reveal_adj_mat(
masked_diagonal=None, tolist=False
)
.to(scores.device)
.float()
)
else:
rel_adj_mat = (
doc_arg_rel_info.whole_arg_rel_mat.reveal_adj_mat(
masked_diagonal=1, tolist=False
)
.to(scores.device)
.float()#给whole_arg_rel_mat主对角线置为1
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discussion on DocEE and SentEE
Projects
None yet
Development

No branches or pull requests

2 participants