IBM / Graph2Tree

Graph4Tree is a simple example code for our EMNLP'20 Findings paper idea.
Apache License 2.0
26 stars 9 forks source link

Graph2Tree with custom dataset #5

Closed maurovit closed 3 years ago

maurovit commented 3 years ago

Hello, I trained your model with dataset that you provided, now I want to train the model with a custom dataset, which aim is semantic parsing. How can I do that? If i run constituency.py without file_for_parsing.plk i get an error: Name Error: preparsed_file is not defined in featureExtract of InputPreprocessor class. Can you help me?

teddylfwu commented 3 years ago

Dear Mauro,

Please see our new graph4nlp library, which have implemented graph2tree model.

https://github.com/graph4ai/graph4nlp

Yours sincerely,

Lingfei (Teddy) Wu Principal Scientist JD.COM Silicon Valley Research Center, 675 E Middlefield Rd, Mountain View, CA 94043 Phone: +1 757-634-5455 Email: @., @. Web: https://sites.google.com/a/email.wm.edu/teddy-lfwu/

On Tue, Jun 8, 2021 at 5:50 AM Mauro @.***> wrote:

Hello, i cannot run constituency.py: when the file_for_parsing.pkl is present, the code raise UnpicklingError: the STRING opcode argument must be quoted. When the file_for_parsing.pkl is not present, the code raise NameError: name 'preparsed_file' is not defined. How can i solve?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/IBM/Graph2Tree/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCYONKNNAKHVYZYO4LMQPDTRXRVDANCNFSM46JRPPAQ .

teddylfwu commented 3 years ago

Dear All,

Please see our newly released graph4nlp library: https://github.com/graph4ai/graph4nlp, which have implemented many GNN methods like Graph2Seq and Graph2Tree models.

maurovit commented 3 years ago

Thank you for your reply, great work.