Semantic parser for translating natural language to SQL queries
Top 52.6% on sourcepulse
SQLova is a neural semantic parser that translates natural language utterances into SQL queries, targeting researchers and developers working with structured data. It achieves state-of-the-art performance on the WikiSQL benchmark by leveraging BERT embeddings and an execution-guided decoding strategy.
How It Works
SQLova employs a BERT-based, table- and context-aware word-embedding approach. The core is a sequence-to-SQL model, building upon the architecture of SQLNet, which uses column attention and a sequence-to-set structure. The SQLova-EG variant incorporates execution-guided decoding, which refines the generated SQL query by checking its executability against the database schema, leading to improved accuracy.
Quick Start & Requirements
$HOME/data/WikiSQL-1.1/data
.python3 train.py
with various arguments to control batch size, learning rate, and BERT fine-tuning. Training on a Tesla M40 GPU takes approximately 12 hours for ~79% logical accuracy.Highlighted Details
Maintenance & Community
Developed by Clova AI Research, NAVER Corp. The project appears to be research-oriented with a focus on the NeurIPS 2019 conference. No community links (Discord, Slack) are provided in the README.
Licensing & Compatibility
Licensed under the Apache License, Version 2.0. This license is permissive and generally compatible with commercial use and closed-source linking.
Limitations & Caveats
The project is research-focused and may not be actively maintained. The dependencies (PyTorch 0.4.0) are quite old, potentially requiring significant effort to update for compatibility with modern environments. The README mentions compatibility issues with newer versions of pytorch-pretrained-BERT
.
5 years ago
Inactive