SDCUP bertindex_knowledge and header_knowledge
i'm struggling how to annotate bertindex_knowledge and header_knowledge, can you explain them? thanks
These two parts are schema linking precessed with human-designed rules. Give 0 if you don't have these features.
thanks for your reply, can you explan the following:
{'sql': {'agg': [0, 4, 0],
'sel': [1, 0, 8],
'cond_conn_op': 0,
'conds': [[5, 2, '258', '258千瓦']],
'use_add_value': 0},
'sql_id': 'benz_23',
'table_id': 'benz',
'question': '功率有没有是258千瓦的的种类是哪个,产品有哪几种,带倒车摄像吗',
'wvi_corenlp': [[6, 8]],
'question_tok': ['功''率','有','没','有','是','258','千','瓦','的','的','种','类','是','哪','个',',','产','品','有','哪','几','种',',','带','倒','车','摄','像','吗'],
'bertindex_knowledge': [4,4,0,0,0,0,1,2,3,0,0,0,0,0,0,0,0,4,4,15,15,15,15,0,0,4,4,4,4,0],
'header_knowledge': [1, 0, 0, 0, 0, 3, 0, 0, 1, 0, 0],
'struct_question': [5,5,11,11,11,11,5,5,5,11,11,11,11,11,11,11,11,0,0,0,0,0,0,11,11,8,8,8,8,11],
'struct_label': [3,3,0,0,0,0,5,5,5,0,0,0,0,0,0,0,0,1,1,2,2,2,2,0,0,1,1,1,1,0]}
what's the correspondence,
'bertindex_knowledge' {0:?, 1:?, ..., 15:?}
'header_knowledge' {0:?, 1:?, ..., 3:?}
thanks
By the way, I'm confused about how to annotate struct_question and struct_label.
can you show me the
These two parts are schema linking precessed with human-designed rules. Give 0 if you don't have these features.
could you please show me the code?