October 2018
Intermediate to advanced
252 pages
6h 49m
English
We will now use the Keras text processing API to one-hot encode the documents. The one-hot method is a representation of categorical features as binary vectors. Firstly, the categorical values are mapped to integer/numeric values. Later, the integer/numeric value is presented as a binary vector that is all zero values, except the one at the index of the integer.
We normally represent a document as a sequence of integer values, where each word in the document is represented as a single integer.