We try to load the pre-trained Word2Vec model from NLTK below. However, we forgot which methods we can use to access the model from NLTK and load the word vectors. In the code below, enter the names of these methods instead of '_____'.
Word2Vec
Blank spaces
Report a typo
Write a program in Python 3
import gensim
from nltk.data import find
word2vec_sample = _____('models/word2vec_sample/pruned.word2vec.txt')
w2v_model = gensim.models.KeyedVectors._____(word2vec_sample, binary=False)
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.