2023 · 14 citations · 20 references
ComputingComputer ScienceInformation SystemsDatabasesFeature EngineeringNatural Language ProcessingNatural Language GenerationNatural Language UnderstandingParsingQuery ProcessingQuestion AnsweringStructured Query LanguageAmbiguous ParsingNatural Language ExplanationsNatural Language InferenceQuestion Answering SystemsQuestion GenerationRequirements BaselinesTable Question Answering
The task of text-to-SQL aims to convert a natural language question into its corresponding SQL query within the context of relational tables. Existing text-to-SQL parsers generate a plausible SQL query for an arbitrary user question, thereby failing to correctly handle problematic user questions. To formalize this problem, we conduct a preliminary study on the observed ambiguous and unanswerable cases in text-to-SQL and summarize them into 6 feature categories. Correspondingly, we identify the causes behind each category and propose requirements for handling ambiguous and unanswerable questions. Following this study, we propose a simple yet effective counterfactual example generation approach that automatically produces ambiguous and unanswerable text-to-SQL examples. Furthermore, we propose a weakly supervised DTE (Detecting-Then-Explaining) model for error detection, localization, and explanation. Experimental results show that our model achieves the best result on both real-world examples and generated examples compared with various baselines. We release our data and code at: https://github.com/wbbeyourself/DTE.
20
Transformers: State-of-the-Art Natural Language Processing
Thomas Wolf, Lysandre Debut, Victor Sanh et al. · 2020 · 8K citations · Full text
Compositional Semantic Parsing on Semi-Structured Tables
Panupong Pasupat, Percy Liang · 2015 · 500 citations · Full text
Erik F. Tjong Kim Sang, Jorn Veenstra · 1999 · 459 citations · Full text