Understanding cond_span_l, cond_span_r and lay fields
Sandy26 opened this issue · comments
Hi Li,Stephen
Could you please shed some light on cond_span_l, cond_span_r and lay fields as to what they are used for and how are they modelled(classifier or rnn etc) ? I would like to use the way the in which condition value is predicted for predicting LIMIT value.
Any insights would be greatly helpful!
Thank you,
Shruti
Hi Shruti,
Each condition value is a text span extracted from the input question. cond_span_l/r is the index of the first/last token of the text span.
They are predicted as shown in the following two lines:
coarse2fine/wikisql/table/Translator.py
Line 110 in 8d135d0
coarse2fine/wikisql/table/Translator.py
Line 115 in 8d135d0
The details are described in Page 7 of http://aclweb.org/anthology/P18-1068.pdf .
Best,
Li
Thank you very much Li. That was indeed helpful!