def converter_minusculas(self): count_word = lambda x: x.lower() Corpus.set_lista_texto(self, list(map(count_word, lista)))