Created
February 19, 2022 23:25
-
-
Save shayaf84/369c192db06dac2fbe4655a43afd5ab9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Convert each of the testing data series to a Word2Vec embedding | |
test = [] | |
for i in title_test: | |
temp = np.array(embed(i)) | |
test.append(temp) | |
#Accounts for the different length of words in test data | |
test = tf.keras.preprocessing.sequence.pad_sequences(test,dtype='float') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment