Word Embeddings

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.

Comments