Slide 42
Slide 42 text
42
Hot Encoding Allows Model to
Predict the Probability of Each
Character in the Vocabulary
Character One-Hot Vector
Encoding
Corpus: [‘a’, ‘b’, ‘c’, ‘d, ‘e’, ‘f’, g’, ‘h’, ‘i’] — len(Corpus) = 9
Word: [‘bad’] → [‘b’, ‘a’, ‘d’]
b → [0, 1, 0, 0, 0, 0, 0, 0, 0], a → [1, 0, 0, 0, 0, 0, 0, 0, 0, 0], d → [0, 0, 0,
1, 0, 0, 0, 0, 0]