nanguoshun / LSR

Pytorch Implementation of our ACL 2020 Paper "Reasoning with Latent Structure Refinement for Document-Level Relation Extraction"
127 stars 22 forks source link

reasoner.py #12

Open qiunlp opened 4 years ago

qiunlp commented 4 years ago

您好:请教一下代码的理解: reasoner.py class StructInduction(nn.Module): STEP2: Injecting structrual bias d0,dx,df对应论文中什么公式? 或者说论文中公式(8)对应的代码是什么? 谢谢!

nanguoshun commented 4 years ago

@qiunlp 谢谢关注和提问。公式8对应的代码是:reasoner.py的line 141 到 160,用于计算节点之间的marginal probability