Lesson 1.8ProjectCode~2 h
Project: a text analyser
Put it all together: count words, rank them, and find which words follow which in a collection of stories.
Module 1 · 0/8 done
Your first project
Time to use everything from this module in one program. You’ll analyse a small collection of stories (it’s built in as data.stories) in three parts:
- Turn raw text into a clean list of words.
- Find the most common words and chart them.
- Build a table of which word follows which — and use it to write a sentence. That’s a (tiny) language model.