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

Function _format_date_cell

NLP/Text2SQL-BASELINE/script/schema_linking.py:94–107  ·  view source on GitHub ↗

Args: old_cell (TYPE): NULL Returns: TODO Raises: NULL

(old_cell)

Source from the content-addressed store, hash-verified

92
93
94def _format_date_cell(old_cell):
95 """
96
97 Args:
98 old_cell (TYPE): NULL
99
100 Returns: TODO
101
102 Raises: NULL
103 """
104 new_cell = old_cell.rstrip('月日')
105 new_cell = new_cell.replace('年', '-')
106 new_cell = new_cell.replace('月', '-')
107 return new_cell
108
109
110def _build(cells):

Callers 1

_buildFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected