MCPcopy Create free account
hub / github.com/FlyingFeather/DEA-SQL / postprocess

Function postprocess

evaluation/test-suite-sql-eval/exec_eval.py:173–175  ·  view source on GitHub ↗
(query: str)

Source from the content-addressed store, hash-verified

171# postprocess the model predictions to avoid execution errors
172# e.g. removing spaces between ">" and "="
173def postprocess(query: str) -> str:
174 query = query.replace('> =', '>=').replace('< =', '<=').replace('! =', '!=')
175 return query
176
177
178# approximate whether p_str and g_str are semantically equivalent

Callers 1

eval_exec_matchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected