Loading slide

The Representation Problem

  1. 01The Representation Problem
  2. 02The gap between pixels and words
  3. 03How a lesson spreads
  4. 04Why the numbers have to mean something
  5. 05Go on, try it
  6. 06So add a direction
  7. 07One-hot encoding
  8. 08The question that breaks it
  9. 09What we actually need
  10. 10You already do this
  11. 11Meaning is relational
  12. 12Reinforce your understanding
  13. 13Question: Why labels fail
  14. 14Question: Meaning from company
  15. 15Question: What good numbers do
  16. 16Quiz: answer
  17. 17What to carry out of this chapter
  18. 18Want to go deeper?
BackNext chapter

That was a lot. House-number streets, loops that won't lie flat, ten thousand light switches. If the details have already started to blur, that's fine. You are not meant to keep all of them.

Here is the one thing to carry out of this chapter.

A machine has no idea what a word means. All it ever sees is numbers. So the whole game is to hand it numbers where closeness tells the truth: words that mean similar things sit near each other, words that don't sit far apart. Get that right and the machine can finally treat "dog" and "puppy" as relatives instead of strangers.

Everything else this chapter did was chasing that one property and watching simpler tries fail. A single number per word is too cramped to hold meaning, which pulls in many directions at once. Giving every word its own switch is the opposite mistake: it keeps everything the same maximum distance apart, which is no map at all. What you actually want sits between those two, a word as a point in a space of hundreds of directions, placed so that nearness means real similarity. And nobody has to place those points by hand. A word's company gives its position away, the way you guessed "wibble" was a drink from nothing but the words around it.

That is the idea the rest of this module builds on. Before a machine can start placing words by their company, though, it needs to know what counts as a piece of text in the first place. A word? Part of a word? The text has to be broken into units the machine can handle, and those units are called tokens. That is where we go next.

Citations