MCPcopy
hub / github.com/Turing-Project/WriteGPT / clean

Function clean

LanguageNetwork/BERT/utils/utils.py:12–15  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

10
11
12def clean(x):
13 return re.sub(
14 r"-lrb-|-rrb-|-lcb-|-rcb-|-lsb-|-rsb-|``|''",
15 lambda m: REMAP.get(m.group()), x)
16
17
18def process(params):

Callers 1

load_jsonFunction · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected