Downloads · 30 days
12
3% of all-time downloads
parkervg/destt5-schema-prediction
destt5-schema-prediction is a machine learning model from parkervg. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
Fine-tuned weights for the schema prediction model described in Correcting Semantic Parses with Natural Language through Dynamic Schema Encoding, based on t5-large.
Downloads · 30 days
12
3% of all-time downloads
All-time downloads
426
Public
Parameters
738M
5.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin3 GB · 50%
From the Hugging Face model README
Fine-tuned weights for the schema prediction model described in Correcting Semantic Parses with Natural Language through Dynamic Schema Encoding, based on t5-large.
The model has been fine-tuned on the 7,481 training examples in the SPLASH interactive semantic parsing dataset.
This model was initialized with t5-large and fine-tuned with the text-to-text generation objective.
As this model works in the interactive setting, we utilize the standard text2sql features such as question and db_schema, in addition to feedback and incorrect_parse.
[question] || [incorrect_parse] || [db_id] | [table] : [column] ( [content] , [content] ) , [column] ( ... ) , [...] | [table] : ... | ... || [feedback]
The model then attempts to predict those schema items that appear in the final gold SQL query, prefaced by the db_id.
[db_id] | [table] : [column] ( [content] , [content] ) , [column] ( ... ) , [...] | [table] : ...
This model achieves 88.98% F1 score in identifying schema items on the SPLASH test set.
When combined with the destt5-text2sql model, it achieves 53.43% correction accuracy (exact-match) on the SPLASH test set.
Correcting Semantic Parses with Natural Language through Dynamic Schema Encoding
Speak to your Parser: Interactive Text-to-SQL with Natural Language Feedback
@inproceedings{glenn2023correcting,
author = {Parker Glenn, Parag Pravin Dakle, Preethi Raghavan},
title = "Correcting Semantic Parses with Natural Language through Dynamic Schema Encoding",
booktitle = "Proceedings of the 5th Workshop on NLP for Conversational AI",
publisher = "Association for Computational Linguistics",
year = "2023"
}