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

models #32

Closed qiunlp closed 3 years ago

qiunlp commented 3 years ago

您好!在学习您的代码,像gcn.py / class GraphConvLayer和attention.py /class SelfAttention这样的模块应该是套用典型的模块,我在网上找了很久,也没有发现有详细注释。请问你这些模块是从哪里来的?依据什么改编的? 谢谢!请原谅我的菜鸟问题。

nanguoshun commented 3 years ago

hi @qiunlp , thanks for your question. For the GraphConvLayer, we refer to https://github.com/Cartus/AGGCN and https://github.com/qipeng/gcn-over-pruned-trees, two very nice implementations for relation extraction.

qiunlp commented 3 years ago

Thanks, I have read https://github.com/Cartus/AGGCN another? 两个,还有一个链接呢?您的2个链接一样 还有class SelfAttention参照哪里呀? 麻烦您了!

nanguoshun commented 3 years ago

Hi @qiunlp I have revised the second link. For the SelAttention implementation, Please refer to the implementation in https://github.com/thunlp/DocRED/blob/master/code/models/ContextAware.py

qiunlp commented 3 years ago

Thank you very much.

非常感谢!