@bill71 wrote:
I am new to Python and text analytics and came across your ‘Comprehensive Guide’ so this question may appear basic but when I get to the line count_vect.fit(trainDF[‘text’]) I get the error ***AttributeError: ‘list’ object has no attribute ‘lower’***. I am using Python 3.6.7 in Anaconda. Do I need to convert the corpus to lower before creating the list? If I do then how do I stop it trying to implement the line *** return lambda x: strip_accents(x.lower()) ***?
Posts: 1
Participants: 1