You are on page 1of 8

- In this lab we will install some necessary programs and packages:

o Python.
o Numpy.
o NLTK.
o NLTK data.
- How to install NLTK:
o Make sure python is installed by writing this command in the
CMD: Python –version
 If it is not installed click here:

 Execute these commands in cmd:


 install numpy: pip install numpy
 Install NLTK: pip install nltk
 Check if nltk is installed successfully:
o python
o import nltk
o if it is installed successfully you should get the
below screen:

o Download the nltk data: nltk.download()


 When you get this window double click on “all” in
the up left corner to download everything: you can
see the progress bar as shown below:
 When the download gets completed, you should get
the below screen:
 Now we will try to check some of the data to make
sure data is downloaded successfully by writing
these commands in the cmd:
o from nltk.corpus import brown
o brown.words()

****************************
**********Installing
Python***************************
***********
o To install python on your machine if it is not installed:
 Go to: https://www.python.org

 Hover on downloads and click on the python version


“Python 3.9.7”.
 Open the downloaded file to complete the installation.
 Check “Add Python 3.9 to PATH” option and click
customize installation.
 You should keep all the options clicked and click next:
 Check all the options and click install

 Finally click close:


 To verify that python is installed successfully write this
command in CMD and you should get your version: python
–version.

You might also like