OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Nl2Sql

Nl2Sql is an open-source Python implementation of a BERT-based approach to translating Chinese natural-language questions into SQL, created for the first Alibaba Tianchi Chinese NL2SQL challenge.

Independent OpenViST project profile, based on linked sources.

Nl2Sql — OpenViST project profile in AI Developer Tools & SDKs.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want to examine a BERT-based Chinese text-to-SQL solution and its documented setup. Adapting it to another dataset or updating its legacy dependencies requires modification.

Who it is for

  • Developers examining a Chinese natural-language-to-SQL competition solution.
  • Researchers or practitioners seeking a starting point for text-to-SQL experiments.

Documented uses

  • Explore a Python implementation that maps Chinese questions to SQL.
  • Use a competition solution as a baseline for text-to-SQL experimentation.
  • Review documented dependencies and locate the repository's training and testing instructions.
Before you choose

Requirements & limits

The repository is public and lists a BSD-3-Clause license.

  • The implementation uses PyTorch 1.1.0 and pytorch-pretrained-bert 0.6.2, with Python 3.6.5 and a specified Ubuntu/CUDA/cuDNN environment.
  • The README provides a requirements-file installation command and links to a separate Train/Test guide.
  • Changing datasets or updating the legacy software stack is marked as requiring modification; compatibility is not documented.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install the documented Python dependencies

Install the project dependencies listed in the repository requirements file.

Before you start

  • Python 3.6.5 is the documented Python version.
  • The README specifies Ubuntu 18.04, PyTorch 1.1.0, CUDA 9.0 and cuDNN 7.1.3.
  • The repository's requirements file lists fuzzywuzzy 0.17.0, NumPy 1.17.0, torch 1.1.0, pytorch-pretrained-bert 0.6.2, tqdm 4.24.0 and records.

Steps

  1. Use the repository's documented environment as a reference.

  2. Run the command below from the project directory.

    Documented command
    pip install -r requirements.txt

Expected outcome

The command requests installation of the Python packages listed in the repository requirements file.

Guide limitations

  • The repository documents legacy dependency versions; no compatibility testing for newer environments is supplied.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
17 October 2026
Original website title
eguilg/nl2sql · Official homepage title · retained in its source language