is a technique used to represent Categorical Variable as binary vectors. In this encoding, each category is represented by a binary vector where all elements are zero except for the index corresponding to the category, which is set to one.
For example, consider the categories: “dog”, “cat”, and “bird”. In a one hot encoding scheme, “dog” might be represented as (1, 0, 0), “cat” as (0, 1, 0), and “bird” as (0, 0, 1).
The ExampleSentencesNLP it converts into this