Args: Returns:
(count, pred_total, gold_total)
| 49 | |
| 50 | |
| 51 | def 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 | |
| 63 | def tokenize_NL2SQL(string, cols, single_equal=False, math=True): |
| 64 | """ |