It would be a bad idea to use one-hot encoding where each input word is encoded as 19,999 zero-values and 1 one-value. For these types of NLP problems you should use what is called a word embedding, ...
Dealing with categorical data is an essential part of data preprocessing in many machine learning tasks. Fortunately, encoding categorical data efficiently helps enhance the performance of machine ...
This article explains how to programmatically encode categorical data for use with a machine learning (ML) prediction model such as a neural network classification or regression system. Suppose you ...