Dependency trees to DGL graphs

#1

Hello,

Do you have any example on how to convert dependency trees (from spacy or stanford corenlp) into DGL graphs that can serve as input to your TreeLSTM model?

Thanks in advance!

0 Likes

#2

We don’t have the dataset in DGL currently. Welcome contribution! I guess if you could first convert it to networkx graph, then it can be converted to DGLGraph easily.

0 Likes