From 8997542839ba5815300f088d28bdb6b5f7613136 Mon Sep 17 00:00:00 2001 From: xuxj1005 Date: Sun, 10 Dec 2017 22:48:36 +0800 Subject: [PATCH 1/4] Fix typo --- sqlnet/model/modules/seq2sql_condition_predict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlnet/model/modules/seq2sql_condition_predict.py b/sqlnet/model/modules/seq2sql_condition_predict.py index 64551ea..4bb34ba 100644 --- a/sqlnet/model/modules/seq2sql_condition_predict.py +++ b/sqlnet/model/modules/seq2sql_condition_predict.py @@ -83,7 +83,7 @@ def forward(self, x_emb_var, x_len, col_inp_var, col_name_len, col_len, else: cur_inp = Variable(torch.from_numpy(init_inp)) cur_h = decoder_hidden - while len(done_set) < B*4 and t < 100: + while len(done_set) < B and t < 100: g_s, cur_h = self.cond_decoder(cur_inp, cur_h) g_s_expand = g_s.unsqueeze(2) From b42ff3666d0e525fe1df590c3e668bc0deacc3e3 Mon Sep 17 00:00:00 2001 From: Xu Xiaojun Date: Thu, 4 Jan 2018 10:14:37 +0800 Subject: [PATCH 2/4] Remove redundant --- train.py | 1 - 1 file changed, 1 deletion(-) diff --git a/train.py b/train.py index f396068..ed0cab5 100644 --- a/train.py +++ b/train.py @@ -1,4 +1,3 @@ -### TODO: Need to be test yet! import json import torch from sqlnet.utils import * From 351646b7d3c3d6e112216c5612c9143cd9bd50c2 Mon Sep 17 00:00:00 2001 From: Xu Xiaojun Date: Wed, 17 Jan 2018 08:46:57 +0800 Subject: [PATCH 3/4] Update README --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8a9ed64..5827213 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # SQLNet -This repo provides an implementation of SQLNet and Seq2SQL neural networks for predicting SQL queries on [WikiSQL dataset](https://github.com/salesforce/WikiSQL). +This repo provides an implementation of SQLNet and Seq2SQL neural networks for predicting SQL queries on [WikiSQL dataset](https://github.com/salesforce/WikiSQL). The paper is available at [here](https://arxiv.org/abs/1711.04436) ## Citation @@ -10,12 +10,10 @@ This repo provides an implementation of SQLNet and Seq2SQL neural networks for p ``` @article{xu2017sqlnet, - author = {Xiaojun Xu and - Chang Liu and - Dawn Song}, - title = {SQLNet: Generating Structured Queries from Natural Language Without - Reinforcement Learning}, - year = {2017}, + title={SQLNet: Generating Structured Queries From Natural Language Without Reinforcement Learning}, + author={Xu, Xiaojun and Liu, Chang and Song, Dawn}, + journal={arXiv preprint arXiv:1711.04436}, + year={2017} } ``` From 5dfb96edc6f1131c3f640f31bcef3520ea0f922c Mon Sep 17 00:00:00 2001 From: Xu Xiaojun Date: Wed, 17 Jan 2018 09:11:08 +0800 Subject: [PATCH 4/4] Update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5827213..34a141a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # SQLNet -This repo provides an implementation of SQLNet and Seq2SQL neural networks for predicting SQL queries on [WikiSQL dataset](https://github.com/salesforce/WikiSQL). The paper is available at [here](https://arxiv.org/abs/1711.04436) +This repo provides an implementation of SQLNet and Seq2SQL neural networks for predicting SQL queries on [WikiSQL dataset](https://github.com/salesforce/WikiSQL). The paper is available at [here](https://arxiv.org/abs/1711.04436). ## Citation