Skip to content

Instantly share code, notes, and snippets.

@michelkana
Created July 14, 2019 19:57
Show Gist options
  • Save michelkana/d22684daf2aa8fe7f3f4d8727964aa1f to your computer and use it in GitHub Desktop.
Save michelkana/d22684daf2aa8fe7f3f4d8727964aa1f to your computer and use it in GitHub Desktop.
NLP text representation - env setup
# install gensim
# pip install –-upgrade gensim
import numpy as np
import gensim
import matplotlib.pyplot as plt
plt.style.use('ggplot')
from sklearn.decomposition import PCA
from gensim.test.utils import datapath, get_tmpfile
from gensim.models import KeyedVectors
from gensim.scripts.glove2word2vec import glove2word2vec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment