Assignment Solution

In this lesson, we will discuss the solutions for the assignments in this chapter.

We'll cover the following

Problem one

Create a word2vec model that will give you the similarity of the two sentences (use cosine similarity).

We used a very simple approach to convert the sentence into a vector (embedding) representation. We just summed up all the individual word vectors and took the average of the resultant vector.

Below is the solution for this problem.

Get hands-on with 1200+ tech skills courses.