Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
12
def
clean(x):
13
return
re.sub(
14
r
"-lrb-|-rrb-|-lcb-|-rcb-|-lsb-|-rsb-|``|''"
,
15
lambda
m: REMAP.get(m.group()), x)
16
17
18
def
process(params):
Callers
1
load_json
Function · 0.90
Calls
1
get
Method · 0.80
Tested by
no test coverage detected