MCPcopy
hub / github.com/Vchitect/Latte / process

Function process

utils.py:328–334  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

326 text = [text]
327
328 def process(text: str):
329 if clean_caption:
330 text = clean_caption(text)
331 text = clean_caption(text)
332 else:
333 text = text.lower().strip()
334 return text
335
336 return [process(t) for t in text]
337

Callers 2

text_preprocessingFunction · 0.85
_text_preprocessingMethod · 0.85

Calls 1

clean_captionFunction · 0.85

Tested by

no test coverage detected