Your First Text Program in Python
Read a string and count its words.
Time to Write Code
Enough theory, let us write real Python. Your first NLP program will read a sentence and count its words. 🐍
Text Lives in Strings
In Python, a piece of text is a string, written inside quotes. It is the basic container for every word you process.
text = "NLP turns words into meaning"All lessons in this course
- From Words to Meaning: The NLP Idea
- NLP You Use Every Day
- The NLP Pipeline at a Glance
- Your First Text Program in Python