MCPcopy Create free account
hub / github.com/ContextualAI/HALOs / clean

Method clean

train/data.py:95–96  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

93 Remove double spaces in the prompt and generations to standardize spacing.
94 """
95 def clean(text: str) -> str:
96 return re.sub(r'[ \t]{2,}', ' ', text)
97
98 # Clean the prompt
99 for turn in self.prompt:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected