Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install older (but stable) NLTK version compatible with python 2

I would like to install an older (but stable) version of NLTK for python2.7. I tried to run the command: pip install nltk===x.x.x but the terminal reports many errors. I was wondering if there's a repository where nltk can be downloaded or whether there are some other ways to solve the problem. Thanks

like image 744
Daniele Avatar asked May 18 '20 09:05

Daniele


People also ask

How do I install NLTK for Python on Windows 64 bit?

Installing NLTK on Windows using PIP: Step 1: Browse to the official site of python by clicking this link. Step 2: Move the cursor to the Download button & then click on the latest python version. Step 3: Open the downloaded file. Click on the checkbox & Click on Customize installation.

What is the latest version of NLTK?

NLTK 3.6. 6 release: December 2021: add precision, recall, F-measure, confusion matrix to Taggers.

Does NLTK come with Python?

NLTK, or Natural Language Toolkit, is a Python package that you can use for NLP. A lot of the data that you could be analyzing is unstructured data and contains human-readable text. Before you can analyze that data programmatically, you first need to preprocess it.

What is import NLTK in Python?

NLTK is a toolkit build for working with NLP in Python. It provides us various text processing libraries with a lot of test datasets. A variety of tasks can be performed using NLTK such as tokenizing, parse tree visualization, etc…


1 Answers

From https://www.nltk.org/news.html , v3.4.5 should be the last version for Python 2 support.

pip install nltk==3.4.5

Note: However, it is strongly recommended to use NLTK with Python 3.

like image 181
alvas Avatar answered Dec 02 '22 23:12

alvas