Word Representations
One-hot Encoding
V = [
'king', # 0
'man', # 1
'woman', # 2
'queen' # 3
] king = [1, 0, 0, 0]
man = [0, 1, 0, 0]
woman = [0, 0, 1, 0]
queen = [0, 0, 0, 1]Word Embeddings
Last updated
Was this helpful?