Technical requirements
The code for this chapter is in the Chapter08 folder in the GitHub repository of the book (https://github.com/PacktPublishing/Python-Natural-Language-Processing-Cookbook-Second-Edition/tree/main/Chapter08).
As in previous chapters, the packages required for the chapter are part of the poetry environment. Alternatively, you can install all the packages using the requirements.txt file.