Cartus / AGGCN

Attention Guided Graph Convolutional Networks for Relation Extraction (authors' PyTorch implementation for the ACL19 paper)
MIT License
432 stars 88 forks source link

how to get standford_head and stanford_deprel for cross-sentence data #31

Closed FanY1999 closed 3 years ago

FanY1999 commented 3 years ago

hello, when I tried to generate the two fields(stanford_head and stanford_deprel) with the stanfordnlp tool,and converted the result into a recognizable pattern for your code, I found a little difference between my results and yours(pubmed dataset).

for example, the sentence"2. acquired resistance mechanism 1 ) secondary t790m mutation of the egfr gene unfortunately , many of those patient who originally had respond eventually become insensitive to gefitinib or erlotinib therapy through acquire resistance ."

my output: 屏幕快照 2021-04-15 下午5.54.09.png your output: 屏幕快照 2021-04-15 下午5.56.15.png

we can see that,in your output ,there're many "-1" value and "self" content.

So,I wonder how do you get the output?Is it because our tool versions are different?

Cartus commented 3 years ago

Hi, for PubMed dataset, we used the preprocessed data from previous work: N-ary Relation Extraction using Graph State LSTM (EMNLP2018). We did not use any other dependency parsers to get the dependency tree. I am not sure which version of the tool they used to get the result.

FanY1999 commented 3 years ago

Thank you.

So,can I understand your work in this way: For the two different tasks ,namely, cross-sentence and sentence-level, except that the input content is not the same, specifically, the stanford_head field is different, and the other processing procedures are basically the same.

Cartus commented 3 years ago

Close this issue. Feel free to re-open it if you have further questions.