0Pricing
NLP Academy · Lesson

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

  1. From Words to Meaning: The NLP Idea
  2. NLP You Use Every Day
  3. The NLP Pipeline at a Glance
  4. Your First Text Program in Python
← Back to NLP Academy