class TextPreprocessor: def clean(self, t): return t.lower().strip()