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
Semantic parsing in context predict sql #31
Comments
@eche043 Hi, thanks for your question. This is because that, for SParC/CoSQL, our models do not generate |
@SivilTaram OK thanks for your answer. I'm waiting |
@eche043 Sorry for the late response (I'm in the vacation these days). After a review on the current code, I must say that it is non-trivial to change the code of However, it is usually hard to finish in weeks. Therefore, for the current situation, I would recommend you to modify the code of UniSAR(here) to make it work for SParC. Although the current codebase is for Spider, IMO you could directly concatenate previous utterances with the current one to have a strong performance on context-dependent semantic parsing such as SParC. Maybe @DreamerDeo could help on this. |
Hi @eche043, As mentioned by @SivilTaram above, our target Spider/CoSQL/SparC benchmark don't need to predict value (as mentioned in their website), the current UniSAR predict no-value SQL accordingly to simplify the output distribution (keyword, column, header and 'value' placeholders). It's not To predict the SQL with value (i.e., make SQL executable), you could directly (1) adopt the However, the current UniSAR constrained decoding don't support value prediction (we are working on this, but it's really tricky to construct the prefix tree of value). [1]: PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Models |
Closed since there is no more activity. |
@longxudou can you please expand on that explaination for correcting the where clause predictability |
Hello everyone in the Semantic Parsing in Context repository, predicted sql queries with where are never correct.
example: what is the abbreviation for Jetblue?
given as query "SELECT airlines.abbreviation FROM airlines WHERE airlines.airline = 1"
as you can see the value associated with WHERE is 1 instead of Jetblue.
it's the same for all queries with WHERE.
Is there a way to resolve this.
Thanks in advance
The text was updated successfully, but these errors were encountered: