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

Function ftfy_fix_text

vtp/tokenizers/text_tokenizer.py:17–18  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

15except ImportError:
16 # Fallback: if ftfy is not available, use a simple replacement
17 def ftfy_fix_text(text):
18 return text
19 ftfy = type('ftfy', (), {'fix_text': staticmethod(ftfy_fix_text)})()
20
21try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected