How can I predict using the word2vec model?

How can I run the word2vec example on the tensorflow official site and load a model of word2vec.save(‘…’) to make word predictions?

No more examples exist on the official site.

Hi @ak47, At the beginning of the tutorial you can click on run in colab option to run the tutorial.

After training once you have saved the model using

word2vec.save('word2vec_model.keras')

you can load the model using

loaded_model = tf.keras.models.load_model('word2vec_model.keras', custom_objects={'Word2Vec': Word2Vec})

Thank You.

loaded_model = tf.keras.models.load_model('word2vec_model.keras', custom_objects={'Word2Vec': Word2Vec})

What method of load_model can I get prediction results for ‘hot’?