LESSON 8.03 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
WordPiece
Watch WordPiece score letter pairs, grow a vocabulary, then split a word.
Needs8.02 BPE
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 8.03 · TOKENIZER BAY26 WORDS · 35 BASE PIECES
01
Stage 1 of 5 · Split letters
WordPiece splits each corpus word into letters. The prefix ## marks a letter inside a word.
Explain it simply
On the left you see the 26 words of the training text, each with how often it appears. WordPiece cuts every word into single letters, and the bars on the right count each piece. A letter inside a word gets two hash marks in front. So it is a different piece from the same letter at a word start.
26 words with their counts, split into letter pieces. Bars show how often each piece appears; ##e appears 15 times.
corpus piecesvocabularyscores, token IDsno match, [UNK]
Toy: the 26 words of the shared English training text, 1 to 30 merges
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
A word becomes its first letter, then the inner letters with ##.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.