yghern / pwp-capstones

0 stars 0 forks source link

Account for commas in prepare_text() #2

Open karl-project-review opened 5 years ago

karl-project-review commented 5 years ago

For reference, here is your prepare_text() function:

    def prepare_text(self, text):
        text = text.lower()
        text = text.replace('?', '')
        text = text.replace('!', '')
        text = text.replace('.', '')
        return text.split()

In addition to periods, exclamation points, and question marks, we should also remove commas from our text samples. We can do this using the same approach you used for the other punctuation.

yghern commented 5 years ago

OK fixed thanks for pointing that out