I've tried to make bags of words with scikit-learn library like https://scikit-learn.org/stable/tutorial/text_analytics/working_with_text_data.html#exercise-1-language-identification, but after X = vectorizer.fit_transform (words)
I encountered this error 'list' object has no attribute 'lower'. Words is a CSV file that is converted to a list. Please let me know what should I do to make this right.