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

Function remove_brackets

NLP/Text2SQL-BASELINE/text2sql/utils/text_utils.py:96–99  ·  view source on GitHub ↗

Remove brackets [] () from text

(s)

Source from the content-addressed store, hash-verified

94
95
96def remove_brackets(s):
97 """Remove brackets [] () from text
98 """
99 return re.sub(r'[\(\(].*[\)\)]', '', s)
100
101
102def is_float(value):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected