In [ ]:
import gensim,logging
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
sentences = [['first', 'sentence'],['second','sentence']]
model = gensim.models.Word2Vec(sentences,min_count=1)
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-f6c9cb46ffb3> in <module>()
----> 1 import gensim,logging
2 logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
3 sentences = [['first', 'sentence'],['second','sentence']]
4 model = gensim.models.Word2Vec(sentences,min_count=1)
D:\soft\anaconda3\envs\tensorflow\lib\site-packages\gensim-2.2.0-py3.5-win-amd64.egg\gensim\__init__.py in <module>()
4 """
5
----> 6 from gensim import parsing, matutils, interfaces, corpora, models, similarities, summarization
7 import logging
8
D:\soft\anaconda3\envs\tensorflow\lib\site-packages\gensim-2.2.0-py3.5-win-amd64.egg\gensim\parsing\__init__.py in <module>()
5 # bring model classes directly into package namespace, to save some typing
6 from .porter import PorterStemmer
----> 7 from .preprocessing import *
D:\soft\anaconda3\envs\tensorflow\lib\site-packages\gensim-2.2.0-py3.5-win-amd64.egg\gensim\parsing\preprocessing.py in <module>()
8 import glob
9
---> 10 from gensim import utils
11 from gensim.parsing.porter import PorterStemmer
12
D:\soft\anaconda3\envs\tensorflow\lib\site-packages\gensim-2.2.0-py3.5-win-amd64.egg\gensim\utils.py in <module>()
40 import numpy as np
41 import numbers
---> 42 import scipy.sparse
43
44 if sys.version_info[0] >= 3:
ImportError: No module named 'scipy'
Content source: thushear/MLInAction
Similar notebooks: