Exploring the libraries
In this section, we will review several of the major Python libraries that are used in NLP; specifically, NLTK, spaCy, and Keras. These are very useful libraries, and they can perform most basic NLP tasks. However, as you gain experience with NLP, you will also find additional NLP libraries that may be appropriate for specific tasks as well, and you are encouraged to explore those.
Using NLTK
NLTK (https://www.nltk.org/) is a very popular open source Python library that greatly reduces the effort involved in developing natural language applications by providing support for many frequently performed tasks. NLTK also includes many corpora (sets of ready-to-use natural language texts) that can be used for exploring NLP problems and testing algorithms.
In this section, we will go over what NLTK can do, and then discuss the NLTK installation process.
As we discussed in Chapter 3, many distinct tasks can be performed in an NLU pipeline as the processing...