Find the odd one out

Report a typo

To go further, manually open an IDE on your computer and copy the output to the website.

Find out an odd word from the following list of words using the Gensim Word2Vec model. In this case, you need to train your model. Use the following parameters:

from gensim.models import Word2Vec

w2v_model = Word2Vec(min_count=5, window=5, sg=0, vector_size=300, sample=6e-5, negative=20)

Train your model on the Gutenberg corpus. The number of iterations for the model should be equal to 15.

In the input, you get a string of word divided by one space. Your output must be the odd word only.

Write code in your IDE to process the text file and display the results below
___

Create a free account to access the full topic