freesunshine0316 / nary-grn

Code regarding to our paper "N-ary Relation Extraction using Graph State LSTM"
96 stars 27 forks source link

how to convert my own input to Peng's graph format? #3

Closed sxue2 closed 5 years ago

sxue2 commented 5 years ago

hi, I found this very useful for extract mutation-gene-drug relationship. This question might be stupid, but how to actually convert the labeled file into the graph_1 format? If I want to use my own training and testing data, how am I able to convert to this document graph?
Thanks for sharing.

freesunshine0316 commented 5 years ago

I release the data of Peng et al., so you can first try to understand it before writing a script to convert your data into that format. It's not that complicated.