Closed paulfitz closed 4 years ago
One data should be:
{
"table_id": "1-1000181-1",
"phase": 1,
"question": "Tell me what the notes are for South Australia ",
"question_tok": ["Tell", "me", "what", "the", "notes", "are", "for", "South", "Australia"],
"sql": {
"sel": 5,
"conds": [
[3, 0, "SOUTH AUSTRALIA"]
],
"agg": 0
},
"query": {
"sel": 5,
"conds": [
[3, 0, "SOUTH AUSTRALIA"]
],
"agg": 0
},
"wvi_corenlp": [
[7, 8]
],
"bertindex_knowledge": [0, 0, 0, 0, 4, 0, 0, 1, 3],
"header_knowledge": [2, 0, 0, 2, 0, 1]
}
I have upload the data https://github.com/guotong1988/NL2SQL-BERT/tree/master/data_and_model
But def infer
API is not ready, you should refer to def test
to edit def infer
.
Thanks for the pretrained model! I was trying to run inference using
python3 ./train.py --trained --do_infer
, but get this error:I've placed something in
data_and_model/ctable.tables.jsonl
anddata_and_model/ctable.db
. I've placed actable_knowledge.jsonl
file in a few places, but I don't see how it would be read. What am I doing wrong?