Setting up Natural Language Processing Environment with Python

$ sudo apt install python-pip
$ pip install -U pip
$ pip install --upgrade pip

Natural Language Toolkit :

NLTK can be seen as a library written for educational purposes and hence, is great to experiment with as its website itself notes this; NLTK has been called “a wonderful tool for teaching, and working in, computational linguistics using Python,” and “an amazing library to play with natural language.” To install NLTK we use pip :

$ sudo pip install -U nltk
>>> import nltk
>>> nltk.download()

spaCy :

In the words of Matthew Honnibal (author of spaCy);

$ sudo pip install -U spacy
$ sudo python -m spacy.en.download

TextBlob :

It is more of a text processing library than an NLP library. It is simple and light weight and is your go-to library when you have to perform some basic NLP operations such as part-of-speech tagging, noun phrase extraction, sentiment analysis, classification, translation, and more.

$ sudo pip install -U textblob
$ sudo python -m textblob.download_corpora

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Shirish Kadam

Shirish Kadam

Product Management | Productivity | Stoicism