While working on this book, I focused on including recipes that would be useful in a wide variety of NLP (Natural Language Processing) projects. They range from the simple to the advanced, and deal with everything from grammar to visualizations; and in many of them, options for languages other than English are included. I hope you find the book useful.
Before we can get on with the real work of NLP, we need to prepare our text for processing. This chapter will show you how to do that. By the end of the chapter, you will be able to have a list of words in a piece of text arranged with their parts of speech and lemmas or stems, and with very frequent words removed.
NLTK and spaCy are two important packages that we will be working with in this chapter and throughout the book.
The recipes included in this chapter are as follows: