From the course: Advanced NLP with Python for Machine Learning

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

How to implement word2vec

How to implement word2vec - Python Tutorial

From the course: Advanced NLP with Python for Machine Learning

Start my 1-month free trial

How to implement word2vec

- [Instructor] Now that we've learned a little bit about word2vec and word vectors in general, let's learn how to actually implement word2vec in Python. I just want to emphasize that there's so much to cover with this, I would strongly encourage you to do your own exploration here and really dig into some of these topics. We're really only going to scratch the surface here. Now, before we dive in, when using word2vec, you really have two options. The first is you can use pre-trained embeddings, this is where a word2vec model has been trained on some extremely large corpus of text, like Wikipedia. This gives you some really nice generic word vectors right out of the box without having to go through the process of training a model. In this lesson, we're going to explore some pre-trained embeddings from Wikipedia. I've also listed a couple other options here. The second option is to train embeddings on our own data. This will…

Contents