2003pro / Graph2Tree

Code for Graph-to-Tree Learning for Solving Math Word Problems (ACL 2020)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I have an error and would like to know how to remedy it.

Natu-ja opened this issue · comments

commented

Hello.
I am a university student studying artificial intelligence.
I am studying with your code as a reference.
I got an error in the last code "encoder_outputs, problem_output = encoder(input_var, input_length)" of the 59th execution of the published "seq2tree_analysis.ipynb" code.
The error code appears as "forward() missing 1 required positional argument: 'batch_graph'".
I would be happy to hear if there is any improvement.

Sorry for the late response.
Firstly, the notebook file "seq2tree_analysis.ipynb" was used for debugging code and not well formed. Therefore, the execution order may need changes. I suggest you execute cells according to the given order.

Secondly, I am wondering if you could give me your execution details about this fault, like the environment or docker you used. Maybe I could reimplement your errors and give further suggestions. According to your current description, I can not tell exactly where your issue lies.