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

Function _extract_value

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

extract values in sql

(string)

Source from the content-addressed store, hash-verified

73 re_cols = [i.lower() for i in cols]
74
75 def _extract_value(string):
76 """extract values in sql"""
77 fields = string.split('"')
78 for idx, tok in enumerate(fields):
79 if idx % 2 == 1:
80 fields[idx] = '"%s"' % (tok)
81 return fields
82
83 def _resplit(tmp_tokens, fn_split, fn_omit):
84 """resplit"""

Callers 1

tokenize_NL2SQLFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected