thunlp / Chinese_NRE

Source code for ACL 2019 paper "Chinese Relation Extraction with Multi-Grained Information and External Linguistic Knowledge"
MIT License
269 stars 43 forks source link

关于位置嵌入 #18

Open Sandra-bwx opened 3 years ago

Sandra-bwx commented 3 years ago

想问一下对于论文中的公式1,为什么在代码中还要加上最大句长再加1?

return x + maxlen + 1