Odd one out challenge

what if the word is not in that vocabulqry?

Hey @footballer.salik,

When we want to represent a word, we can use a one-hot encoding / lookup Dictionary.

One Hot Encoding

It is the way of representing words in a vocab. Suppose you have a vocab of size N. Then the vector representing each word will be 1 x (N+1). Here Extra 1 is added for Unknown words that are not in the vocab. So if there occurs a word that is not in the vocab we can pass the one-hot Encoded value corresponding to unknown. or an integer in case of a lookup dictionary

A similar approach can we used while making a lookup dictionary. We will take the dictionary size as n+1.