ShomyLiu / pytorch-pcnn

supervised relation extraction for PCNN (Zeng 2014) in pytorch 关系抽取
137 stars 40 forks source link

question about code #9

Closed DesireHope closed 5 years ago

DesireHope commented 5 years ago

https://github.com/ShomyLiu/pytorch-pcnn/blob/e1c95ed6bef369f08550043f79779f1d301dd236/models/PCNN.py#L36 这一行代码为什么要乘6?

ShomyLiu commented 5 years ago

因为论文中,需要拼接词法级别的embedding,具体可以看论文Relation Classification via Convolutional Deep Neural Network的Table1

DesireHope commented 5 years ago

哦哦,是我没仔细看,明白了,谢谢