Project Creation: Part Two

In this lesson, we are going to take things forward and create the word vectors (embedding) for our sentences.

In the previous lesson, we loaded the word vectors into a dictionary. We will now create a function that will accept the data and return a vector representation for each sentence in the data. Before moving on, we also need to convert our dataframe into the train and test the input and output. The output needs to be in one hot encoding.

Create the input and output data

Get hands-on with 1000+ tech skills courses.