NLP - Word Embeddings
What will be the output of this code?
from gensim.models import FastText sentences = [['cat', 'dog'], ['dog', 'mouse']] model = FastText(sentences, vector_size=5, window=2, min_count=1, epochs=3) vector1 = model.wv['cat'] vector2 = model.wv['dog'] import numpy as np print(np.dot(vector1, vector2))
