Homelander ยท blog

Word Embeddings

44 words 1 min read #Embedding#NLP
Categories NLP

Words to vector, catch word meanings by word embeddings.

Representing words

One-Hot Encoding

Choose a vocabulary, each word in your sample is represented by a one-hot vector (shape: (vocab_size, )).

If any words are not in the vocab, use '' token to represent it.