One-Hot Encoding Visualization
Word
"apple"
"banana"
"cherry"
One-Hot Vector
apple
banana
cherry
1
0
0
[1, 0, 0]
0
1
0
[0, 1, 0]
0
0
1
[0, 0, 1]
Each word is represented by a vector with a single 1 at its position in the vocabulary
and 0s everywhere else.