Intro to Python for Computer Science and Data Science: Learning to Program with AI, Big Data and The Cloud
by Paul J. Deitel, Harvey M. Deitel
12.10 Wrap-Up
In this chapter, you performed a broad range of natural language processing (NLP) tasks using several NLP libraries. You learned that NLP is performed on text collections known as corpora. We discussed nuances of meaning that make natural language understanding difficult.
We focused on the TextBlob NLP library, which is built on the NLTK and pattern libraries, but easier to use. You created TextBlobs and tokenized them into Sentences and Words. You determined the part of speech for each word in a TextBlob, and you extracted noun phrases.
We demonstrated how to evaluate the positive or negative sentiment of TextBlobs and Sentences with the TextBlob library’s default sentiment analyzer and with the NaiveBayesAnalyzer. You learned ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access