MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / build_cell_index

Function build_cell_index

NLP/Text2SQL-BASELINE/script/schema_linking.py:136–153  ·  view source on GitHub ↗

Args: db_dict (TYPE): NULL Returns: TODO Raises: NULL

(db_dict)

Source from the content-addressed store, hash-verified

134
135
136def build_cell_index(db_dict):
137 """
138
139 Args:
140 db_dict (TYPE): NULL
141
142 Returns: TODO
143
144 Raises: NULL
145 """
146 for db in db_dict.values():
147 column_cells = []
148 ##if db.db_id == '洗衣机':
149 ## print(db.db_id)
150 for column in db.columns:
151 cell_index = _build(column.cells)
152 column_cells.append(cell_index)
153 db.column_cells_index = column_cells
154
155
156def extract_value_from_sql(sql_json, sql_format='dusql'):

Callers 1

schema_linking.pyFile · 0.85

Calls 2

_buildFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected