Sequence-to-sequence (seq2seq) models have achieved competitive results on both semantic parsing and generation (Dong and Lapata, 2016;Hu et al., 2018), and without loss of generality, we adopt it as the basic framework for both tasks in this work.
for both p θ (y|x) and q φ (x|y), we use a two-layer bidirectional LSTM (bi-LSTM) as the encoder and another one-layer LSTM as the decoder with attention mechanism (Luong et al., 2015).