@@ -42,7 +42,8 @@ scikit-learn.
4242## Setup
4343
4444To run the code, you need the packages `` numpy `` , `` scipy `` , `` scikit-learn `` , `` matplotlib `` , `` pandas `` and `` pillow `` .
45- Some of the visualizations of decision trees and neural networks structures also require `` graphviz `` .
45+ Some of the visualizations of decision trees and neural networks structures also require `` graphviz `` . The chapter
46+ on text processing also requirs `` nltk `` and `` spacy `` .
4647
4748The easiest way to set up an environment is by installing [ Anaconda] ( https://www.continuum.io/downloads ) .
4849
@@ -51,6 +52,10 @@ If you already have a Python environment set up, and you are using the ``conda``
5152
5253 conda install numpy scipy scikit-learn matplotlib pandas pillow graphviz python-graphviz
5354
55+ For the chapter on text processing you also need to install `` nltk `` and `` spacy `` :
56+
57+ conda install nltk spacy
58+
5459
5560### Installing packages with pip
5661If you already have a Python environment and are using pip to install packages, you need to run
@@ -60,6 +65,14 @@ If you already have a Python environment and are using pip to install packages,
6065You also need to install the graphiz C-library, which is easiest using a package manager.
6166If you are using OS X and homebrew, you can `` brew install graphviz `` . If you are on Ubuntu or debian, you can `` apt-get install graphviz `` .
6267Installing graphviz on Windows can be tricky and using conda / anaconda is recommended.
68+ For the chapter on text processing you also need to install `` nltk `` and `` spacy `` :
69+
70+ pip install nltk spacy
71+
72+ ### Downloading English language model
73+ For the text processing chapter, you need to download the English language model for spacy using
74+
75+ python -m spacy download en
6376
6477## Submitting Errata
6578
0 commit comments