MCPcopy Create free account
hub / github.com/MiniMax-AI/VTP / get_clean_fn

Function get_clean_fn

vtp/tokenizers/text_tokenizer.py:134–141  ·  view source on GitHub ↗

Get cleaning function by type.

(clean_type: str)

Source from the content-addressed store, hash-verified

132
133
134def get_clean_fn(clean_type: str):
135 """Get cleaning function by type."""
136 if clean_type == 'lower':
137 return _clean_lower
138 elif clean_type == 'whitespace':
139 return _clean_whitespace
140 else:
141 return _clean_lower # Default to lower
142
143
144class SimpleTokenizer(object):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected