已收录 268921 条政策
 政策提纲
  • 暂无提纲
ER-SQL: Learning enhanced representation for Text-to-SQL using table contents
[摘要] Text-to-SQL emerges to play an important role in interactive data analysis, which provides a friendly interface for converting natural language into relational database language (i.e., SQL). In order to translate a user's query into an executable SQL statement, semantic parsing is essential to the transformation process. In particular, existing efforts provide some feasible solutions, and state-of-the-art models mainly adopt the sketch-based paradigm such that template values are to be filled. To this end, most methods extract values based on column representations. However, if the query contains multiple values that belong to different columns, these methods may fail to extract the values accurately. Moreover, it can be difficult to infer the right values when the query does not explicitly mention the corresponding column names. To bridge the gap, we propose a novel neural architecture, namely, ER-SQL for learning enhanced representations for Text-to-SQL. Based on pre-trained model BERT, ER-SQL uses column contents to better extract features of columns. Moreover, ER-SQL harnesses the column representations to latently reformulate the query. To verify the effectiveness of ER-SQL, comprehensive experiments demonstrate that ER-SQL achieves better results than existing models on the benchmark dataset WikiSQL, as well as on a representative Chinese dataset TableQA. (C) 2021 The Author(s). Published by Elsevier B.V.
[发布日期] 2021-11-20 [发布机构] 
[效力级别]  [学科分类] 
[关键词] Text-to-SQL;Semantic parsing;Pre-trained language model;Enhanced representation [时效性] 
   浏览次数:1      统一登录查看全文      激活码登录查看全文