Course Content
Text Processing Wizardry: NLTK Essentials for Natural Language Handling
Text Processing Wizardry: NLTK Essentials for Natural Language Handling
Import NLTK
Let's start with our project. To explore (some of) the possibilities that NLTK offers we are going to import nltk
. Then you will be able to define your own story that will be later used for the processing part.
TaskCompleted
- Import
nltk
; - Define a variable
story
with your own text (use a short story of at least 200 words to better understandnltk
).
Note
If you want to use
nltk
on your computer, you need first to install it using the following command in the terminal:Here it is already pre-installed.
Everything was clear?
Section 1. Chapter 2