One-Hot Encoding, Bag-of-Words, N-Grams, and TF-IDF — Natural language processing (NLP) is a subset of machine learning that deals with language and semantics. A machine learns the semantics of words by being trained, like how typical machine learning works. A problem arose when we realised that almost all commonly used machine learning models can only take numeric…