AI/자연어처리
pyLDAvis.gensim import 오류
XZXXZX
2021. 8. 1. 20:39
728x90
반응형
import pyLDAvis.gensim
pyLDAvis.gensim 을 import 시키려하면 아래와 같이 오류가 생기는데
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-23-9dfbc282a7fc> in <module>()
----> 1 import pyLDAvis.gensim
2 pyLDAvis.enable_notebook()
3 vis = pyLDAvis.gensim.prepare(ldamodel, corpus, dictionary = dictionary)
4 pyLDAvis.display(vis)
ModuleNotFoundError: No module named 'pyLDAvis.gensim'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
gensim이라는 모듈이 없다고 나온다.
현재 pyLDAvis.gensim은 -> pyLDAvis.gensim_model로 명명이 변경되었다.
import pyLDAvis.gensim_models
728x90
반응형