Skip to content

ImportError: cannot import name 'preprocess' from 'lda2vec' (D:\anaconda3\lib\site-packages\lda2vec\__init__.py) #103

@gaowenxin95

Description

@gaowenxin95

hi, l hace installed lda2vec by "pip setup,py install"
but when l run code,l got this errors

from lda2vec import Lda2vec,word_embedding
from lda2vec import preprocess, corpus
import matplotlib.pyplot as plt
import numpy as np
%matplotlib inline

try:
    import seaborn
except:
    pass
Using TensorFlow backend.
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-5-8438244e518f> in <module>()
      1 from lda2vec import Lda2vec,word_embedding
----> 2 from lda2vec import preprocess, corpus
      3 import matplotlib.pyplot as plt
      4 import numpy as np
      5 get_ipython().run_line_magic('matplotlib', 'inline')

ImportError: cannot import name 'preprocess' from 'lda2vec' (D:\anaconda3\lib\site-packages\lda2vec\__init__.py)

@cemoody @cesarsalgado @intohole @matheusportela

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions