Quantcast
Viewing all articles
Browse latest Browse all 4448

Your blog: A Comprehensive Guide to Understand and Implement Text Classification in Python

@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

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles