MCPcopy
hub / github.com/MeiGen-AI/InfiniteTalk / _clean

Method _clean

wan/modules/tokenizers.py:75–82  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

73 return ids.input_ids
74
75 def _clean(self, text):
76 if self.clean == 'whitespace':
77 text = whitespace_clean(basic_clean(text))
78 elif self.clean == 'lower':
79 text = whitespace_clean(basic_clean(text)).lower()
80 elif self.clean == 'canonicalize':
81 text = canonicalize(basic_clean(text))
82 return text

Callers 1

__call__Method · 0.95

Calls 3

whitespace_cleanFunction · 0.85
basic_cleanFunction · 0.85
canonicalizeFunction · 0.85

Tested by

no test coverage detected