Skip to content
Course materials for "Get Started with NLP in Python"
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo/textrank
html
.gitignore
INSTALL.md
LICENSE
README.md
ex01.ipynb
ex02.ipynb
ex03.ipynb
ex04.ipynb
ex05.ipynb
ex06.ipynb
ex07.ipynb
ex08.ipynb
ex09.ipynb
pynlp.py
requirements.txt
stop.txt
terms.tsv

README.md

Set up for "Get Started with NLP in Python"

This repo includes the notebooks, source data, and other materials for the course Get Started with Natural Language Processing in Python.

Virtual Environment

It's recommended to use virtualenv to manage your Python 3 virtual environment:

virtualenv -p /usr/bin/python3 ~/venv

Then run:

source ~/venv/bin/activate

Installation on a Laptop

To install the required Python libraries, Jupyter, and related data sets:

pip install -r requirements.txt

python -m nltk.downloader punkt
python -m nltk.downloader wordnet
python -m textblob.download_corpora
python -m spacy download en

pip install jupyter
pip install jupyterlab

Start jupyter

jupyter notebook

Installation on an Ubuntu server in a cloud

Alternatively, if you want install all of the required dependencies and run from an Ubuntu VM in the cloud, see the notes in INSTALL.md

Command line test

To verify that the code in the pynlp library runs correctly, i.e., that the installation succeeded:

python pynlp.py html/article1.html a1.json
You can’t perform that action at this time.