Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple questions using SEMPRE #218

Open
lucas-g-cardoso opened this issue Sep 16, 2020 · 2 comments
Open

Simple questions using SEMPRE #218

lucas-g-cardoso opened this issue Sep 16, 2020 · 2 comments

Comments

@lucas-g-cardoso
Copy link

Hello,

I am using PlotQA, which uses SEMPRE and I am trying to run inference in some generated CSV files.

I already generated the CSV files using PlotQA, now I just need a way to "ask some questions" to these few tables. I am using SEMPRE Tables (Semantic Parsing on Semi-Structured Tables). My question here is how can I do this in a simples way? I could not find commands to run simple questions, just to run training modes.

I hope you guys can help me out. Thanks in advance.

@ppasupat
Copy link
Collaborator

Could you try the interactive mode as described in https://github.com/percyliang/sempre/tree/master/tables#other-usages?

You can load the params of a trained model by adding -Builder.inParamsPath path/to/params to the command line. You might also need to specify the right grammar file and features. What does PlotQA use for grammar and features?

@lucas-g-cardoso
Copy link
Author

Thanks for the rapid response.

PlotQA uses the default grammar of SEMPRE tables (as far as I know). I was also able to use the interactive mode for some simple examples, but I was wondering: Is there a faster way to do it? Maybe a function to call in a pipeline, that asks automatically some specified questions to previously generated tables?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants