Giter VIP home page Giter VIP logo

Comments (5)

guotong1988 avatar guotong1988 commented on May 29, 2024

have you preprocess the data?

from nl2sql.

SeekPoint avatar SeekPoint commented on May 29, 2024

ub16hp@UB16HP:/ub16_prj/NL2SQL$ python extract_vocab.py
Loading from original dataset
Loading data from data/train_tok.jsonl
Traceback (most recent call last):
File "extract_vocab.py", line 21, in
load_dataset(0, use_small=USE_SMALL)
File "/home/ub16hp/ub16_prj/NL2SQL/sqlnet/utils.py", line 41, in load_dataset
'data/train_tok.tables.jsonl', use_small=use_small)
File "/home/ub16hp/ub16_prj/NL2SQL/sqlnet/utils.py", line 18, in load_data
with open(SQL_PATH) as inf:
IOError: [Errno 2] No such file or directory: 'data/train_tok.jsonl'
ub16hp@UB16HP:
/ub16_prj/NL2SQL$

cannot find _tok in the data.tar.gz in wikisql

from nl2sql.

guotong1988 avatar guotong1988 commented on May 29, 2024

Can not read your post.

from nl2sql.

SeekPoint avatar SeekPoint commented on May 29, 2024

ub16hp@UB16HP:/ub16_prj/NL2SQL$ python extract_vocab.py
Loading from re-split dataset
Loading data from data/train.jsonl
Loading data from data/train.tables.jsonl
Loading data from data/dev.jsonl
Loading data from data/dev.tables.jsonl
Loading data from data/test.jsonl
Loading data from data/test.tables.jsonl
Loading word embedding from glove/glove.42B.300d.txt
Length of word vocabulary: 1917494
Traceback (most recent call last):
File "extract_vocab.py", line 39, in
for tok in sql['question_tok']:
KeyError: 'question_tok'
ub16hp@UB16HP:
/ub16_prj/NL2SQL$

from nl2sql.

SeekPoint avatar SeekPoint commented on May 29, 2024

I figure it out.

from nl2sql.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.