Technical requirements
The code in the sections Training the spaCy text classifier and Sentiment analysis with spaCy is spaCy v3.0 compatible.
The section Text classification with spaCy and Keras requires the following Python libraries:
- TensorFlow >=2.2.0
- NumPy
- pandas
- Matplotlib
You can install the latest version of these libraries with pip
as follows:
pip install tensorflow pip install numpy pip install pandas pip install matplotlib
We also use Jupyter notebooks in the last two sections. You can follow the instructions on the Jupyter website (https://jupyter.org/install) to install the Jupyter notebook onto your system. If you don't want to use notebooks, you can copy-paste code as Python code as well.
You can find the chapter code and data files in the book's GitHub repository at https://github.com/PacktPublishing/Mastering-spaCy/tree/main/Chapter08.
Let's get started with spaCy's text classifier component first,...