I am trying to import gensim
in spyder (Python). I have already installed the package through cmd
. Here is the code I have come up with:
import gensim
from gensim import corpora,models
dictionary = corpora.Dictionary(texts)
corpus = [dictionary.doc2bow(text) for text in texts]
ldamodel = gensim.models.ldamodel.LdaModel(corpus, num_topics=3, id2word = dictionary, passes=20)
Problem is it's showing the error
ImportError: No module named gensim