Project Creation: Part Two
Explore how to convert sentences into 50-dimensional vectors using GloVe embeddings and one hot encode outputs to prepare data for an emoji prediction model. Understand the data preprocessing steps and get ready to build an LSTM architecture for NLP project development.
We'll cover the following...
We'll cover the following...
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
Explanation:
- We have used
Kerasto create one hot encodings to the