To apply Machine Learning techniques to NLP, one needs to perform Feature Extraction from the text documents in the Corpus. In this article we explore the approaches to performing Feature Extraction.
Here is the link to the article on NLTK:
Feature Extraction for Natural Language Processing
Enjoy π !!!