crazydonkey200 / neural-symbolic-machines

Neural Symbolic Machines is a framework to integrate neural networks and symbolic representations using reinforcement learning, with applications in program synthesis and semantic parsing.
Apache License 2.0
375 stars 69 forks source link

NSM also use database table header to train, am I right? #28

Closed guotong1988 closed 5 years ago

guotong1988 commented 5 years ago

In Wikisql. Not only question-answer pair. Thank you!

crazydonkey200 commented 5 years ago

No, it doesn't use table headers.

guotong1988 commented 5 years ago

Thank you. It is amazing. How could NSM generate the SQL without using table headers. NSM do not know how to interact with the database without the table headers, based on my understanding.

guotong1988 commented 5 years ago

My understanding:

NSM use the reward of SQL execution to train and then to find the right SQL with right answer.

The reward come from the execution result of SQL and the labeled answer.

crazydonkey200 commented 5 years ago

NSM uses the column names when generating the programs if that's what you mean by "table header". You can see that from the example programs in Supplementary B of the paper.

guotong1988 commented 5 years ago

thank you very much