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

Function get_scores

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

Args: Returns:

(count, pred_total, gold_total)

Source from the content-addressed store, hash-verified

49
50
51def get_scores(count, pred_total, gold_total):
52 """
53 Args:
54
55 Returns:
56 """
57 if pred_total != gold_total:
58 return 0, 0, 0
59 elif count == pred_total:
60 return 1, 1, 1
61 return 0, 0, 0
62
63def tokenize_NL2SQL(string, cols, single_equal=False, math=True):
64 """

Callers 1

evaluate_NL2SQLFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected