Text Classification – Natural Language Processing With Python and NLTK p.11
Now that we understand some of the basics of of natural language processing with the Python NLTK module, we’re ready to try out text classification. This is where we attempt to identify a body of text with some sort of label.
To start, we’re going to use some sort of binary label. Examples of this could be identifying text as spam or not, or, like what we’ll be doing, positive sentiment or negative sentiment.