Post
1312
nevmenandr/w2v-russian-tolstoy
life by Tolstoy (w2v):
import gensim
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
import seaborn as sns
sns.set_style("darkgrid")
from sklearn.decomposition import PCA
from sklearn.manifold import TSNE
modelLNT2 = Word2Vec.load("cbow_300_10.model")
# skip some code... for full version see model's card
tsnescatterplot(modelLNT2, 'жизнь_S', [i[0] for i in modelLNT2.wv.most_similar(negative=["жизнь_S"])])
life by Tolstoy (w2v):