Created
July 14, 2019 19:57
-
-
Save michelkana/d22684daf2aa8fe7f3f4d8727964aa1f to your computer and use it in GitHub Desktop.
NLP text representation - env setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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