AliceMind icon indicating copy to clipboard operation
AliceMind copied to clipboard

SDCUP bertindex_knowledge and header_knowledge

Open cold-eye opened this issue 3 years ago • 4 comments

i'm struggling how to annotate bertindex_knowledge and header_knowledge, can you explain them? thanks

cold-eye avatar Mar 18 '22 01:03 cold-eye

These two parts are schema linking precessed with human-designed rules. Give 0 if you don't have these features.

grygg avatar Mar 18 '22 03:03 grygg

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

cold-eye avatar Mar 18 '22 03:03 cold-eye

By the way, I'm confused about how to annotate struct_question and struct_label.

zhy-fp avatar Oct 08 '22 09:10 zhy-fp

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?

cold-eye avatar Mar 23 '23 14:03 cold-eye