MCPcopy Create free account
hub / github.com/SooLab/CGFormer / basic_clean

Function basic_clean

utils/simple_tokenizer.py:50–53  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

48
49
50def basic_clean(text):
51 text = ftfy.fix_text(text)
52 text = html.unescape(html.unescape(text))
53 return text.strip()
54
55
56def whitespace_clean(text):

Callers 1

encodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected