MCPcopy Create free account
hub / github.com/FoundationVision/LlamaGen / basic_clean

Method basic_clean

language/t5.py:91–94  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

89
90 @staticmethod
91 def basic_clean(text):
92 text = ftfy.fix_text(text)
93 text = html.unescape(html.unescape(text))
94 return text.strip()
95
96 def clean_caption(self, caption):
97 caption = str(caption)

Callers 1

clean_captionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected