Hannibal046 / SDDS

[ACL2023] Source code for Dialogue Summarization with Static-Dynamic Structure Fusion Graph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

求解答

teorzhang opened this issue · comments

commented

请问代码中low_encoder和high_encoder中的low和high代表什么意思呢?

low: low-level feature(token)
high: high-level feature(utterance)

commented

明白了,感谢回复。另外想问一下,Static-Dynamic Fusion Module是在GraphTransformerMultiHeadAttentionLayer中体现吗?

Hi, 具体的代码实现可以参考:

energy_ls = []
for idx in range(self.n_heads):
energy_ls.append(self.combine_conv(torch.stack([energy[:,idx,:,:],feature_conv_output[:,idx,:,:]],dim=1)).squeeze(1))
energy = self.conv_activation_fn(torch.stack(energy_ls,dim=1)) # bs,n_head,q_len,k_len

commented

明白了,感谢

commented

好的 感谢