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

Function exact_match

NLP/Text2SQL-BASELINE/text2sql/utils/linking_utils.py:259–266  ·  view source on GitHub ↗

check exact match

(x_list, y_list)

Source from the content-addressed store, hash-verified

257 return False
258
259 def exact_match(x_list, y_list):
260 """check exact match"""
261 x, y = x_list, y_list
262 if type(x) is list:
263 x = "".join(x)
264 if type(y) is list:
265 y = "".join(y)
266 return x == y
267
268 def set_q_relation(q_match_dict, q_start, q_match_len, other_id, relation_tag, force=True):
269 """set match relation for question

Callers 1

compute_schema_linkingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected