Build Your First LLM from ScratchPart 2 · Section 2 of 7
The Task
Our model will convert English math phrases into English number answers:
"two plus three" → "five"
"seven minus four" → "three"
"six times eight" → "forty eight"
"twenty divided by five" → "four"Notice: both input and output are words, not digits. The model never sees "2 + 3 = 5"—it only sees "two plus three" and learns to predict "five".
Helpful?