@@ -42,7 +42,8 @@ scikit-learn.
42
42
## Setup
43
43
44
44
To 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 `` .
46
47
47
48
The easiest way to set up an environment is by installing [ Anaconda] ( https://www.continuum.io/downloads ) .
48
49
@@ -51,6 +52,10 @@ If you already have a Python environment set up, and you are using the ``conda``
51
52
52
53
conda install numpy scipy scikit-learn matplotlib pandas pillow graphviz python-graphviz
53
54
55
+ For the chapter on text processing you also need to install `` nltk `` and `` spacy `` :
56
+
57
+ conda install nltk spacy
58
+
54
59
55
60
### Installing packages with pip
56
61
If 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,
60
65
You also need to install the graphiz C-library, which is easiest using a package manager.
61
66
If 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 `` .
62
67
Installing 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
63
76
64
77
## Submitting Errata
65
78
0 commit comments