This notebook is based on Ines Montani's free online course, available at:
https://github.com/ines/spacy-course
The instructions are in the link below :
To install spacy, please use:
conda install -c conda-forge spacy
This notebook is tested for version 2.1.3
As per May, 4th 2019, installing Spacy via "conda install -c conda-forge spacy" delivers 2.0.8 version so I used "pip install -U spacy" to have version 2.1.3 in my computer
To check the library version, use the commands below:
import spacy
print(spacy.__version__)
https://github.com/explosion/spacy-models/releases/
To download a model:
python -m spacy download pt
python -m spacy download en
or...
python -m spacy download en_core_web_sm
python -m spacy download pt_core_news_sm
python -m spacy download en_core_web_md
To link a model to refer to it more easily:
python -m spacy link en_core_web_md en
python -m spacy link pt_core_news_sm pt
I highly recommend you to install table of contents from nbextensions, that makes the navigation in the sections much more easier.
Instructions can be found here:
https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/install.html
conda install -c conda-forge jupyter_contrib_nbextensions
jupyter nbextension enable toc2
If you have issues rendering these notebooks, you can try nbviewer
https://nbviewer.jupyter.org/github/Cristianasp/spacy/blob/master/Chapter_01.ipynb
https://nbviewer.jupyter.org/github/Cristianasp/spacy/blob/master/Chapter_02.ipynb
https://nbviewer.jupyter.org/github/Cristianasp/spacy/blob/master/Chapter_03.ipynb
https://nbviewer.jupyter.org/github/Cristianasp/spacy/blob/master/Chapter_04.ipynb
The materials are licensed under CC BY-SA.
See here for details: [https://github.com/ines/spacy-course/blob/master/LICENSE]