#NEWLINE# def generate_corpus( self , text ) : #NEWLINE# #INDENT# '\n        Given a text string, returns a list of lists; that is, a list of\n        "sentences," each of which is a list of words. Before splitting into \n        words, the sentences are filtered through `self.test_sentence_input`\n        ' #NEWLINE# sentences = self . sentence_split ( text ) #NEWLINE# passing = filter ( self . test_sentence_input , sentences ) #NEWLINE# runs = map ( self . word_split , sentences ) #NEWLINE# return runs