guotong1988 / NL2SQL-RULE

Content Enhanced BERT-based Text-to-SQL Generation https://arxiv.org/abs/1910.07179
188 stars 48 forks source link

bertindex_knowledge and header_knowledge #20

Closed cold-eye closed 2 years ago

cold-eye commented 2 years ago

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

guotong1988 commented 2 years ago

https://github.com/guotong1988/NL2SQL-RULE/blob/master/data_and_model/output_entity.py

cold-eye commented 2 years ago

yeah, i've seen the scripts output_entity.py, but what's meaning of label [0,1,2,3,4]? If my datasets is different with yours, the scripts output_entity.py need to modify? 'bertindex_knowledge': [0, 3, 0, 0, 4, 0, 3, 0], 'header_knowledge': [0, 2, 0, 0, 0, 2]

guotong1988 commented 2 years ago
image image image