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

Function clean

LanguageNetwork/BERT/utils/pyrouge.py:25–28  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

23
24
25def clean(x):
26 return re.sub(
27 r"-lrb-|-rrb-|-lcb-|-rcb-|-lsb-|-rsb-|``|''",
28 lambda m: REMAP.get(m.group()), x)
29
30
31class DirectoryProcessor:

Callers 1

processMethod · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected