SV2-SQL: a text-to-SQL transformation mechanism based on BERT models for slot filling, value extraction, and verification

被引:0
|
作者
Chih-Yung Chang
Yuan-Lin Liang
Shih-Jung Wu
Diptendu Sinha Roy
机构
[1] Tamkang University,
[2] National Institute of Technology,undefined
来源
Multimedia Systems | 2024年 / 30卷
关键词
NL2SQL; Slot filling; BERT; SV; -SQL; Information retrieval; Semantic parsing;
D O I
暂无
中图分类号
学科分类号
摘要
Information retrieval from databases is challenging for a non-SQL-domain expert. Some previous studies have provided solutions for translating the natural language to SQL instruction, aiming to access the information in the database directly. However, most solutions are in English Natural Language. In addition, the accuracies of the existing works still need to be improved. This work presents a mechanism called SV2-SQL, based on the pre-trained BERT. The proposed SV2-SQL mainly consists of multiple deep-learning models, including select-where slot filling model (SWSF-model), value extraction model (VE-model), and verification (V-model). The SWSF-model handles the classification tasks for those fields that appear in the “Select” and “Where” clauses, and the VE-model extracts the values for the “Where” clause from the input. The V-model sorts out the unwanted candidates from two previous models and leaves only the ones with the highest possibility. The proposed SV2-SQL also includes an algorithm for the inference process and allows the three models to be cooperative. Experimental results show that the proposed SV2-SQL outperforms the existing studies in terms of precision, accuracy, and recall.
引用
收藏
相关论文
共 6 条
  • [1] SV2-SQL: a text-to-SQL transformation mechanism based on BERT models for slot filling, value extraction, and verification
    Chang, Chih-Yung
    Liang, Yuan-Lin
    Wu, Shih-Jung
    Roy, Diptendu Sinha
    MULTIMEDIA SYSTEMS, 2024, 30 (01)
  • [2] Generate Text-to-SQL Queries Based on Sketch Filling
    Fu, Yinpei
    Ye, Songtao
    Fan, Hongjie
    IEEE ACCESS, 2024, 12 : 152392 - 152403
  • [3] PS-SQL: Phrase-based Schema-Linking with Pre-trained Language Models for Text-to-SQL Parsing
    Lan, Zhibo
    Li, Shuangyin
    2024 6TH INTERNATIONAL CONFERENCE ON NATURAL LANGUAGE PROCESSING, ICNLP 2024, 2024, : 31 - 35
  • [4] RYANSQL: Recursively Applying Sketch-based Slot Fillings for Complex Text-to-SQL in Cross-Domain Databases
    Choi, DongHyun
    Shin, Myeong Cheol
    Kim, EungGyun
    Shin, Dong Ryeol
    COMPUTATIONAL LINGUISTICS, 2021, 47 (02) : 309 - 332
  • [5] An interaction-modeling mechanism for context-dependent Text-to-SQL translation based on heterogeneous graph aggregation
    Yu, Wei
    Chang, Tao
    Guo, Xiaoting
    Wang, Mengzhu
    Wang, Xiaodong
    NEURAL NETWORKS, 2021, 142 : 573 - 582
  • [6] Improving the Accuracy of Text-to-SQL Tools Based on Large Language Models for Real-World Relational Databases
    Coelho, Gustavo M. C.
    Nascimento, Eduardo R. S.
    Izquierdo, Yenier T.
    Garcia, Grettel M.
    Feijo, Lucas
    Lemos, Melissa
    Garcia, Robinson L. S.
    de Oliveira, Aiko R.
    Pinheiro, Joao P.
    Casanova, Marco A.
    DATABASE AND EXPERT SYSTEMS APPLICATIONS, PT I, DEXA 2024, 2024, 14910 : 93 - 107