MCPcopy Create free account
hub / github.com/InternScience/SciReason / remove_invisible_chars

Function remove_invisible_chars

opencompass/datasets/mathbench.py:238–242  ·  view source on GitHub ↗

Remove invisible characters.

(text: str)

Source from the content-addressed store, hash-verified

236
237
238def remove_invisible_chars(text: str) -> str:
239 """Remove invisible characters."""
240 text = re.sub(r'\s+', '', text)
241 text = re.sub(r'\u200b', '', text)
242 return text
243
244
245@ICL_EVALUATORS.register_module()

Callers 1

scoreMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected