Error in google colab while working with genism

from gensim.corpora.dictionary import Dictionary

ModuleNotFoundError Traceback (most recent call last)

in () ----> 1 from gensim.corpora.dictionary import Dictionary 2 from nltk.tokenize import word_tokenize

ModuleNotFoundError: No module named ‘genism’

You’ll have to install Genism on colab. Use the following snippet, and paste it in colab cell before importing the package.

!pip install -U gensim
1 Like