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

Function _format_col

NLP/Text2SQL-BASELINE/tools/evaluation/utils.py:260–265  ·  view source on GitHub ↗

format

(old_col)

Source from the content-addressed store, hash-verified

258 return outs
259
260 def _format_col(old_col):
261 """format"""
262 if old_col.lower().startswith('table_'):
263 return old_col.split('.', 1)[1]
264 else:
265 return old_col
266
267 if 'where' not in query:
268 cond_index = len(query)

Callers 1

query2sqlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected